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.6 required=5.0 tests=BAYES_20,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: "David C. Hoos, Sr." Subject: Re: Variant Records Date: 1999/09/14 Message-ID: <7rlc8v$b4i@hobbes.crc.com>#1/1 X-Deja-AN: 524942809 References: <202784de.3f456337@usw-ex0106-042.remarq.com> Organization: Coleman Research Corporation X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Newsgroups: comp.lang.ada Date: 1999-09-14T00:00:00+00:00 List-Id: Shawn Barber wrote in message news:202784de.3f456337@usw-ex0106-042.remarq.com... > 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, and in > this variant record a field of a particular variant is > another variant record. I already know the pain which has > been inflicted by using such a data structure. 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 manor? Thanks. > This is impossible to answer precisely without knowing what you mean by "all at once." Unless the record is very small (which wouldn't seem to be the case, from your description), it almost certainly is _not_ "all at once", in that several loads/stores will be needed to accomplish assignment or comparison. Perhaps if you explained more the nature of the "problem" you're having, as well as the platform, compiler, and other details, you'd be more likely to get meaningful help.