From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: How to define an array of a variant record type?
Date: Wed, 19 Nov 2003 02:38:24 GMT
Date: 2003-11-19T02:38:24+00:00 [thread overview]
Message-ID: <AIAub.182993$9E1.962668@attbi_s52> (raw)
In-Reply-To: bpdm15$1o7hc7$1@ID-25716.news.uni-berlin.de
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;
Funny how the same ideas come up again and again. The original code was
written in Pascal around 1987.
Steve
(The Duck)
next prev parent reply other threads:[~2003-11-19 2:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-17 16:57 How to define an array of a variant record type? Harald Schmidt
2003-11-17 17:35 ` Stephen Leake
2003-11-20 10:02 ` Craig Carey
2003-11-17 17:37 ` Marius Amado Alves
2003-11-18 2:48 ` Steve
2003-11-18 9:04 ` Marius Amado Alves
2003-11-17 18:45 ` Rodrigo Garcia
2003-11-18 2:48 ` Steve
2003-11-18 17:48 ` Nick Roberts
2003-11-19 2:38 ` Steve [this message]
2003-11-19 8:11 ` Preben Randhol
2003-11-19 13:26 ` Rodrigo Garcia
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox