From: "Christoph Karl Walter Grein" <AdaMagica@web.de>
To: comp.lang.ada@ada-france.org
Subject: Re: Semantics of Inline vs non-Inline
Date: Thu, 21 Oct 2004 07:07:31 +0200
Date: 2004-10-21T07:07:31+02:00 [thread overview]
Message-ID: <mailman.42.1098335297.10401.comp.lang.ada@ada-france.org> (raw)
> > function Push( Datum : Datum_Type ) return List.Cell_Ptr is
> > LM_Datum : List.Datum_Type;
> > for LM_Datum'Address use Datum'Address;
>
> Sorry, I still don't see why Datum'Address should compile if it is not supported.
>
> Regards,
> Wojtek
Obviously you are not familiar with Ada RM speak:
"Not supported" means: Upon execution of your program, it's undefined what will happen.
If your compiler does not pass the argument with a valid address, your program is erroneous.
Full stop.
The RM also makes a distinction between "undefined" and "implementation defined".
But your program is legal syntax, so the compiler cannot reject it. As it cannot reject X := 1 / 0;
It might do you a favour and output a warning, though, but that's not required.
________________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193
next reply other threads:[~2004-10-21 5:07 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-21 5:07 Christoph Karl Walter Grein [this message]
2004-10-21 10:24 ` Semantics of Inline vs non-Inline Wojtek Narczynski
-- strict thread matches above, loose matches on Subject: below --
2004-10-21 11:21 Christoph Karl Walter Grein
2004-10-21 20:57 ` Wojtek Narczynski
2004-10-22 0:46 ` skidmarks
2004-10-22 5:50 ` Simon Wright
2004-10-22 12:57 ` Wojtek Narczynski
2004-10-18 6:29 Christoph Karl Walter Grein
2004-10-20 15:07 ` Wojtek Narczynski
2004-10-15 6:18 Christoph Karl Walter Grein
2004-10-15 11:02 ` Wojtek Narczynski
[not found] <35f054ea.0410140733.5f250e6f@posting.google.com>
2004-10-14 16:14 ` Wojtek Narczynski
2004-10-14 20:05 ` Arthur Schwarz
2004-10-15 10:24 ` Wojtek Narczynski
2004-10-15 16:32 ` Arthur Schwarz
2004-10-14 17:58 ` Martin Krischik
2004-10-15 0:49 ` Arthur Schwarz
2004-10-15 8:05 ` Martin Krischik
2004-10-15 16:39 ` Arthur Schwarz
2004-10-15 16:40 ` Arthur Schwarz
2004-10-15 16:40 ` Arthur Schwarz
2004-10-15 16:45 ` skidmarks
2004-10-15 3:40 ` Steve
2004-10-15 5:50 ` Simon Wright
2004-10-15 16:57 ` skidmarks
2004-10-18 17:01 ` skidmarks
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox