comp.lang.ada
 help / color / mirror / Atom feed
* Initialize with aggregate?
@ 2005-11-21 19:40 ejijott
  2005-11-21 21:38 ` Gautier Write-only
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: ejijott @ 2005-11-21 19:40 UTC (permalink / raw)


Hi there!

Regarding the code below, what syntax do I use to initialize tempstore
with an aggregate?
[code]
.
.
.
    type node;
    type storage is access node;
    type node is
        record
            next:  storage;       -- Pekare till nästa nod.
            item:  string(1..50); -- En textsträng
            len:   integer :=-1;  -- Längden på strängen.
            count: integer := 0;  -- Antalet förekomster av strängen
        end record;
.
.
.
        tempstore:=new Node;
        tempstore.item(1 .. Val'length):=Val;
        tempstore.len:=Val'length;
        tempstore.count:=1;
        if S /= null then
            tempstore.next:=S;
        end if;
        S:=tempstore;
[/code]




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-11-22 20:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-21 19:40 Initialize with aggregate? ejijott
2005-11-21 21:38 ` Gautier Write-only
2005-11-21 21:49 ` Simon Wright
2005-11-22 17:10   ` Adam Beneschan
2005-11-22 20:00     ` Simon Wright
2005-11-21 22:21 ` Robert A Duff
2005-11-22 16:57   ` Adam Beneschan
2005-11-22 20:07     ` Robert A Duff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox