From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!gryphon!pnet02!bagpiper From: bagpiper@pnet02.gryphon.com (Michael Hunter) Newsgroups: comp.lang.ada Subject: record component selector in init Message-ID: <20109@gryphon.COM> Date: 21 Sep 89 02:20:19 GMT Sender: root@gryphon.COM Organization: People-Net [pnet02], Redondo Beach, CA. List-Id: 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, }!gryphon!pnet02!bagpiper INET: bagpiper@pnet02.gryphon.com