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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d3118bd0aa46477d X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Variant Records Date: 1999/09/14 Message-ID: <37de56f8@news1.prserv.net>#1/1 X-Deja-AN: 524983260 Content-transfer-encoding: 7bit References: <202784de.3f456337@usw-ex0106-042.remarq.com> Content-Type: text/plain; charset="US-ASCII" X-Complaints-To: abuse@prserv.net X-Trace: 14 Sep 1999 14:08:56 GMT, 129.37.62.63 Organization: Global Network Services - Remote Access Mail & News Services Mime-version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-14T00:00:00+00:00 List-Id: In article <202784de.3f456337@usw-ex0106-042.remarq.com> , Shawn Barber wrote: > I have recently run into a small problem using variant records. I have been > forced (against my better judgement) to use a data structure consisting of a > variant record, What do you have against variant records? > and in this variant record a field of a particular variant is another variant > record. What's wrong with that? > I already know the pain which has been inflicted by using such a data > structure. What kind of pain? Depending on the nature of your problem, that might be exactly the data structure you need. > My question is when I do a compare, say Var_1 = Var_2 or an assignment are the > fields compaired/assigned field by field or all at once or in some other > manner? Thanks. Both comparison and assignment are done field-by-field, although this isn't something you'll find in the RM. How else would you expect it to be done? And why do you need to know? Give us some specific details about what you think the problem is.