comp.lang.ada
 help / color / mirror / Atom feed
* Newbie question # 2
@ 2020-08-06 18:40 Ian Douglas
  2020-08-06 18:56 ` Simon Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ian Douglas @ 2020-08-06 18:40 UTC (permalink / raw)


Hi all

I did try Google search and assorted books but could not find answer.

In PHP, let's say we have a variable $fruit which contains the string "banana".

In PHP, if I do $$fruit, then it creates a variable $banana, which I can then do things with.

Does Ada support any such concept of taking the contents of one variable and using THAT as a variable?

I'm reading in a file which has a name of an object followed by some properties so I want to use the name as a variable ...
File is something I created, so it's not some random stuff, and the variables will be existing already.

Thanks, Ian

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

end of thread, other threads:[~2020-08-07 11:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-06 18:40 Newbie question # 2 Ian Douglas
2020-08-06 18:56 ` Simon Wright
2020-08-06 19:41   ` Ian Douglas
2020-08-06 21:10     ` Simon Wright
2020-08-07 11:28       ` Ian Douglas
2020-08-06 19:20 ` Niklas Holsti
2020-08-06 19:45   ` Ian Douglas
2020-08-06 20:08     ` Niklas Holsti
2020-08-06 19:41 ` Dmitry A. Kazakov

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