comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Lexical Conundrum
Date: 1998/03/05
Date: 1998-03-05T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.98Mar5182956@spectre.mitre.org> (raw)
In-Reply-To: dewar.888331888@merv


In article <dewar.888331888@merv> dewar@merv.cs.nyu.edu (Robert Dewar) writes:

   Mats said

   <<True, but you have to treat all as a special case.
   >>


   Here once again is the correct check...

   Hmmm.  How does GNAT treat the attributes 'ACCESS, 'DELTA, and 'RANGE?
(Attributes whose identifiers match reserved words.)  If you fold the
reserved word into the tic to create an attribute name, no problem.
And as long as GNAT never provides implementation defined attributes
of values or ranges, again no problem. Both Ada 83 and Ada 95 avoid
these potentialy nasty cases, but there were some present in earlier
versions of Ada.  (In particular, the 'RANGE attribute could be a
subtype mark.)

   The right solution is probably to avoid defining attributes of
values.  Just as the cure for the problem of single character attribute
names (again, in Ada 80) was to refrain from defining any.
--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  reply	other threads:[~1998-03-05  0:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-19  0:00 Lexical Conundrum Nick Roberts
     [not found] ` <EotBMK.MnK@world.std.com>
1998-02-22  0:00   ` Robert Dewar
     [not found]     ` <Eou91J.Es9@world.std.com>
1998-02-23  0:00       ` Robert Dewar
1998-02-23  0:00     ` Keith Thompson
1998-02-23  0:00       ` Robert Dewar
1998-02-26  0:00     ` Dr Steve Sangwine
1998-02-23  0:00   ` Mark A Biggar
1998-02-24  0:00     ` Mats Weber
1998-02-24  0:00       ` Robert Dewar
1998-03-05  0:00         ` Robert I. Eachus [this message]
1998-02-23  0:00 ` Jean-Pierre Rosen
1998-02-23  0:00   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1998-02-22  0:00 Nick Roberts
1998-02-22  0:00 ` Robert Dewar
1998-02-24  0:00   ` John Roberts-Jones
replies disabled

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