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,240cb913c01fcedf X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: record to text in VADS ala Alsys Date: 1996/10/17 Message-ID: #1/1 X-Deja-AN: 190109250 references: <540tvu$njc@magpie.cdev.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-10-17T00:00:00+00:00 List-Id: Chris said "This may be my poor memory. I recall a feature of the Alsys Ada compiler where it would translate an arbitrary Ada record into a textual equivilant. If my memory serves it was something like... record_type'image(value) and the result would be (attribute_name_1 => value, attribute_name_2 => value, ... ) Does anyone know if there is an equvilant feature in VADS? Is there any easy way to write it?" First, this could not have been the Image attribute, that would be an invalid extension of the language. It would be OK to have an impl-def attribute doing this, and on our list of things to do is to extend the GNAT attribute Img to have this capability. I am not aware of Alsys ever having such an attribute, but I may just be unaware of this. VADS certainly dos not, at least not the versions we deal with. There is no easy way to write this for yourself (in fact there is no way at all to write it yourself, easy or hard!)