comp.lang.ada
 help / color / mirror / Atom feed
* record to text in VADS ala Alsys
@ 1996-10-15  0:00 Chris Warwick
  1996-10-17  0:00 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Warwick @ 1996-10-15  0:00 UTC (permalink / raw)



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?




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: record to text in VADS ala Alsys
  1996-10-15  0:00 record to text in VADS ala Alsys Chris Warwick
@ 1996-10-17  0:00 ` Robert Dewar
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1996-10-17  0:00 UTC (permalink / raw)



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!)





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-10-17  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-15  0:00 record to text in VADS ala Alsys Chris Warwick
1996-10-17  0:00 ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox