comp.lang.ada
 help / color / mirror / Atom feed
From: "Arthur Schwarz" <aschwarz1309@worldnet.att.net>
Subject: Re: Semantics of Inline vs non-Inline
Date: Fri, 15 Oct 2004 16:32:44 GMT
Date: 2004-10-15T16:32:44+00:00	[thread overview]
Message-ID: <MYSbd.554257$OB3.314800@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: pan.2004.10.15.10.24.40.759156@power.com.pl


"Wojtek Narczynski" <wojtek@power.com.pl> wrote in message
news:pan.2004.10.15.10.24.40.759156@power.com.pl...
> Hello,
>
> >> I think that using Unchecked_Conversion, instead of (ab)using 'Address
> >> rep clause, will fix the problem.
> >
> >    No abuse. 'Address is legal Ada. A novel or unexpected use does not
> >    mean that it 'abuses' the language. The current use allows the
> >    equivalent of a C/++ 'union'. Other C.L.A. communication shows this
> >    to be both a viable use and (to some) a good one.
>
> I cannot agree to that. It is a totally unchecked conversion of anything
> into anything (GNAT is kind enough to do some checks voluntarily). This is
> the way to defeat the Ada type system. It is mostly used to overcome the
> lack of 'out' parameters for functions. And we're just discussing a case
> where the use of 'Address led to a runtime crash.

  Well at this point we must respectfully disagree. I understand you
objection
  and don't take issue with it. Outside of LRM statements   prohibiting use
or
  mandating specific use, then the user is free to choose. I do not disagree
  that (in this case) this defeats the safety checks in Ada. I do disagree
with
  the notion that as a non-prohibited use it should be consigned to 'just
  deserved oblivion'. Sigh.

  And thank you again. You and Martin, the other respondent, have provided
  some alternatives which may relieve me of this problem.

art





  reply	other threads:[~2004-10-15 16:32 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <35f054ea.0410140733.5f250e6f@posting.google.com>
2004-10-14 16:14 ` Semantics of Inline vs non-Inline Wojtek Narczynski
2004-10-14 20:05   ` Arthur Schwarz
2004-10-15 10:24     ` Wojtek Narczynski
2004-10-15 16:32       ` Arthur Schwarz [this message]
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
2004-10-15  6:18 Christoph Karl Walter Grein
2004-10-15 11:02 ` Wojtek Narczynski
  -- strict thread matches above, loose matches on Subject: below --
2004-10-18  6:29 Christoph Karl Walter Grein
2004-10-20 15:07 ` Wojtek Narczynski
2004-10-21  5:07 Christoph Karl Walter Grein
2004-10-21 10:24 ` Wojtek Narczynski
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
replies disabled

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