Re: strings and multidimensional arrays

From: Robert I. Eachus (rieachus_at_comcast.net)
Date: 10/14/03


Date: Tue, 14 Oct 2003 15:29:53 GMT

Jeffrey Carter wrote:

> That's a consequence of aliased I hadn't encountered, and the wrapper
> trick is a good thing to know. I didn't realize I was getting into an
> area that would require attention from the ARG. It seems like a
> significant incompatability from Ada 83 not to allow assignment to
> "normal" unconstrained record components.

And given the aliased rule, which works fine with the wrapper type but
not with discriminated component, I think GNAT's behavior is as it
should be. It is just that to the exent that this behavior is changed
from Ada 83, I would have expected it to be documented as such. The
rule for aliased components may be a change from Ada 83, but the
presence of aliased is all the documentation needed for that. But the
rule for unaliased components may have implicitly changed here. Again it
might be considered an extention, not a change, and as such not needed
documentation.

-- 
                                           Robert I. Eachus
"Quality is the Buddha. Quality is scientific reality. Quality is the 
goal of Art. It remains to work these concepts into a practical, 
down-to-earth context, and for this there is nothing more practical or 
down-to-earth than what I have been talking about all along...the repair 
of an old motorcycle."  -- from Zen and the Art of Motorcycle 
Maintenance by Robert Pirsig


Relevant Pages

  • Re: U : Unbounded_String := "bla bla bla"; (was: Is the Writing...)
    ... >>Now if you want to recommend that in Ada 200X, ... handle it as you say by a completely new package with different ... Quality is scientific reality. ... -- from Zen and the Art of Motorcycle ...
    (comp.lang.ada)
  • Re: += in ada
    ... That is the campaign that Ada needs. ... Quality is scientific reality. ... -- from Zen and the Art of Motorcycle ...
    (comp.lang.ada)
  • Re: += in ada
    ... "Ada World" Webmaster ... Quality is scientific reality. ... -- from Zen and the Art of Motorcycle ... > Maintenance by Robert Pirsig ...
    (comp.lang.ada)
  • Re: Mixed languages and frustration.
    ... so I'm sitting here trying to juggle between C pointers and Ada ... Quality is scientific reality. ... -- from Zen and the Art of Motorcycle ...
    (comp.lang.ada)
  • Literate Programming in Ada, AdaDoc, AdaBrowse
    ... I've been struggling with the question of how best to do the documentation ... accompanying open source Ada projects. ... Literate programming is a fancy way of documenting source code. ... These ideas lead us to the existing AdaDoc and AdaBrowse projects, ...
    (comp.lang.ada)