comp.lang.ada
 help / color / mirror / Atom feed
From: bagpiper@pnet02.gryphon.com (Michael Hunter)
Subject: record component selector in init
Date: 21 Sep 89 02:20:19 GMT	[thread overview]
Message-ID: <20109@gryphon.COM> (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

                 reply	other threads:[~1989-09-21  2:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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