comp.lang.ada
 help / color / mirror / Atom feed
* record component selector in init
@ 1989-09-21  2:20 Michael Hunter
  0 siblings, 0 replies; only message in thread
From: Michael Hunter @ 1989-09-21  2:20 UTC (permalink / raw)


NOTE: I've only been programming in Ada for a few weeks...

And I was porting somebody else's code under VMS 5.1.  The code had been
written under VMS 4.7 (of course using an earlier compiler).  Some code of the
following form 
Varname : Rectype := ((0..63) => false) ;
did not compile.  The compiler said that a compnent selector had to be an
identifier.  (sorry if this doesn't sound exact...I don't have the error
message close at hand)  Well, after some false trials I found a constant that
had been defined as I needed.... [FYI this was the record PRV_TYPE in
starlet].  Could anybody tell me why this code compiled under 4.7 and didn't
compile under 5.1?  Is that a bug in the new compiler or was it a bug in the
old compiler that got fixed?  Thankx for any information!

                                        Michael

UUCP: {ames!elroy, <routing site>}!gryphon!pnet02!bagpiper
INET: bagpiper@pnet02.gryphon.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1989-09-21  2:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1989-09-21  2:20 record component selector in init Michael Hunter

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