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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cda33fc7f63c2885 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-07 08:47:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: list strawman Date: 07 Jan 2002 11:37:27 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1010421678 4163 128.183.220.71 (7 Jan 2002 16:41:18 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 7 Jan 2002 16:41:18 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:18610 Date: 2002-01-07T16:41:18+00:00 List-Id: Stephen Leake writes: > > The List and Iterator Initialize routines have to allocate new list > > and iterator structures respectively before they do anything else. > > The list Initialize does this, but the iterator one looks like it > > tries to dereference the (null) pointer immediately. You say you've > > tested with iterators, so you must have gotten this to work somehow, > > but I'm mystified as to how (unless it was the passive iterator > > generic). > > Yes, I've only used the passive generic (to print the lists), so maybe > I am missing something. I lied. My test case calls "&" (list, list), which uses an explicit iterator. So this does work, somehow. I found chasing thru the various layers of Initialize, Adjust, and Finalize very confusing, espically for functions like "&" that must allocate a temporary object to return. I have not done a lot of work with Controlled types, and now I remember one reason why! -- -- Stephe