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,WEIRD_QUOTING autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90514f9a192a4997 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-06 15:01:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Expectation of Access Value Equality Date: Sat, 6 Sep 2003 22:01:26 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: d2-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1062885686 29060 134.91.1.15 (6 Sep 2003 22:01:26 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Sat, 6 Sep 2003 22:01:26 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/831)) Xref: archiver1.google.com comp.lang.ada:42217 Date: 2003-09-06T22:01:26+00:00 List-Id: Nick Roberts wrote: : (a) Would you be surprised by: : : Print( (+"foo",+"bar",+"",+"") ); : : printing three lines? No. : (b) Would you be surprised by: : : Print( (+"foo",+"bar",+"hum",+"foo") ); : : printing one line? No, but I was surprised to see four lines (which adds TODO items to my list, among them, look up the meaning of new with string literals. Is a pointer to a new string made from a literal different from another of the same making?) : (c) What would you think of an implementation that caused this behaviour? : (What would you think of an implementation that printed four lines in both : cases?) I'd think that it might be correct and that I am wrong. But I'd try to make sure I am wrong. : (d) I'd be grateful for a very brief indication of your level and broad : area(s) of programming experience, in Ada and other languages. Writing programs for a living mostly in Java (standalone and for Servlet containers), XSL, Perl; some teaching experience; Ada hobbyist. Georg