From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,24d7acf9b853aac8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 25 Aug 2010 21:19:38 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: S-expression I/O in Ada References: <547afa6b-731e-475f-a7f2-eaefefb25861@k8g2000prh.googlegroups.com> <4c74cf12$0$6892$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4c756ccb$0$6771$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 25 Aug 2010 21:19:39 CEST NNTP-Posting-Host: d3b2daed.newsspool3.arcor-online.net X-Trace: DXC=^e;QW8`SLEm<6cDJZfMd_cMcF=Q^Z^V3h4Fo<]lROoRa8kFjLh>_cHTX3jm454ckmTaf2i X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13736 Date: 2010-08-25T21:19:39+02:00 List-Id: On 25.08.10 20:55, Simon Wright wrote: > Georg Bauhaus writes: > >> To store data, keep the List type, but store objects inside a map. > > This would mean that the order in which data is accessed isn't the order > in which it was received. Why not? If reading appends to a list stored at the current key which lives on top of a stack? (A B (C D E) F) '(' ~> push key_1 -- First key will be returned key_1 : A B key_2 -- '(' ~> push key_2 key_2 : C D E -- ')' ~> pop (key_1 on top) | v key_1 : A B key_2 F -- ')' ~> pop (stack empty) key_2 : C D E First_Key := key_1; return; Georg