* Array aggregates and initializing strings
@ 1998-09-25 0:00 Ehud Lamm
0 siblings, 0 replies; only message in thread
From: Ehud Lamm @ 1998-09-25 0:00 UTC (permalink / raw)
Hope the following examples will shed light on the "initializing string"
problem.
type arr is array(1..8)of character;
--a:arr := (1..4=>"ehud",others=>' ');
-- This will not compile since the expr after => must mach the component
-- type;
b:arr:="ehudlamm";
--This works because of section 4.3.3(19)
c:arr:="ehud";
-- This will compile with a warning that a constraint_error will be
-- raised during elaboration.
Ehud Lamm mslamm@pluto.mscc.huji.ac.il
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-09-25 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-25 0:00 Array aggregates and initializing strings Ehud Lamm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox