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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f63c66b1f04412d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-19 00:11:59 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: How to define an array of a variant record type? Date: Wed, 19 Nov 2003 08:11:59 +0000 (UTC) Organization: PVV Message-ID: References: NNTP-Posting-Host: 129.241.83.82 X-Trace: tyfon.itea.ntnu.no 1069229519 159 129.241.83.82 (19 Nov 2003 08:11:59 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 19 Nov 2003 08:11:59 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:2668 Date: 2003-11-19T08:11:59+00:00 List-Id: On 2003-11-19, Steve wrote: > One other thing I can't resist mentioning. > > Here is a snippet of Ada Code in oue of our systems. > > TYPE aConstantDataItemCAX (itemTypeCAX : aConstantDataTypeCAX := > invalidTypeCAX) IS > RECORD > CASE itemTypeCAX IS > WHEN invalidTypeCAX | iTypeCAX => > --The data item that is used to pass data between screen edit > --and the access procedures > intValueCAX : integer; > WHEN fTypeCAX => > realValueCAX : float; > WHEN eTypeCAX => > eValueCAX : anEnumRecordCAX; > WHEN sTypeCAX => > stringValueCAX : aConstantStringCAX; > END CASE; > END RECORD; Wouldn't underscores been nice? -- "Saving keystrokes is the job of the text editor, not the programming language."