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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4bc0e5c544f4d1eb X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: question on variant record Date: 1996/11/03 Message-ID: <01bbc941$3abc5960$238371a5@dhoossr.iquest.com>#1/1 X-Deja-AN: 194101286 distribution: world references: content-type: text/plain; charset=ISO-8859-1 organization: DBH Enterprises, Inc. mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-11-03T00:00:00+00:00 List-Id: The answer is yes -- but not "just like a normal field". Tagged types have a 'Tag attribute, returning a value of type Ada.Tags.Tag (a private type), and an attribute 'External_Tag which is a string. The package Ada.Tags has conversions between the two attributes. For more details see the LRM, section 3.9.(5-25), and 13.3 (74-78). -- David C. Hoos, Sr., http://www.dbhwww.com http://www.ada95.com Michiel Perdeck wrote in article ... > This is one of several questions on Ada95. I have split them over a > few messages so that reactions may be given to individual questions. > > Can the tag field in a variant record (the field that determines the > actual type of the record) be queried just like a normal field? It > makes sense that it cannot be set afterwards but one should want to > request it's actual value, I suppose. > > Regards, > Michiel Perdeck > > Michiel Perdeck > CMG AT Finance, Amstelveen, Netherlands > michiel.perdeck@cmg.nl > michiel.perdeck@tip.nl > >