comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@d2-hrz.uni-duisburg.de>
Subject: Re: Expectation of Access Value Equality
Date: Sat, 6 Sep 2003 22:01:26 +0000 (UTC)
Date: 2003-09-06T22:01:26+00:00	[thread overview]
Message-ID: <bjdlfm$sc4$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: bja3fi$glkjh$1@ID-25716.news.uni-berlin.de

Nick Roberts <nickroberts@blueyonder.co.uk> 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



  parent reply	other threads:[~2003-09-06 22:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-05 13:35 Expectation of Access Value Equality Nick Roberts
2003-09-05 13:02 ` chris
2003-09-05 17:56   ` Nick Roberts
2003-09-05 19:10 ` Robert I. Eachus
2003-09-05 19:32 ` Jeffrey Carter
2003-09-05 19:35 ` Simon Wright
2003-09-06  0:25 ` Matthew Heaney
2003-09-06  2:41 ` Steve
2003-09-06 22:01 ` Georg Bauhaus [this message]
2003-09-08  9:08 ` Preben Randhol
2003-09-08  9:09   ` Andy
2003-09-09 22:31     ` Nick Roberts
2003-09-10 18:39 ` Mário Amado Alves
2003-09-23 10:46 ` Jacob Sparre Andersen
replies disabled

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