comp.lang.ada
 help / color / mirror / Atom feed
* String to Variable Name Mapping
@ 1996-04-11  0:00 F. Britt Snodgrass
  1996-04-13  0:00 ` Laurent Guerby
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: F. Britt Snodgrass @ 1996-04-11  0:00 UTC (permalink / raw)


Is there an attribute or some other way to use the contents of a string
variable to point to another variable?

For example, if I have the following declarations,

  Int_Var : Integer;
  Str_Var : String (1..32) := "Int_Var";

can I somehow use the contents of Str_Var to make an assignment to 
Int_Var?

I'd like to do this as a way of initializing variables by reading from a 
text file containing the variable name and the desired initial value.

Thanks,
Britt Snodgrass  (mailto:britt@acm.org)





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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-11  0:00 String to Variable Name Mapping F. Britt Snodgrass
1996-04-13  0:00 ` Laurent Guerby
1996-04-13  0:00 ` Robert Dewar
1996-04-19  0:00 ` Todd Coniam
1996-04-25  0:00 ` Felaco

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