slang-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Get name of variable (identifier)?


Hi

Is it possible to get the name of an identifier as a string?
Even if these occur on either side of the equal sign:

  variable val_arr = [v.protein,v.energy_kj,v.vitamin_a ...]

The "v.protein", etc. represent number values from a structure,
but you could also call them variable names and I would like to
get e.g. "val_arr" and "v.protein" as a literal strings.

Is this possible?

Thanks,
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.


[2021 date index] [2021 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]