14.11.2010, 22:37
You mean something like this?
new a = 1;
then: Var_(a) would be Var_1
a = 2: Var_2 and so on?
Afaik this is not possible in that way. What you could try is a ? condition (dont know how it is called
)
you would write (create) Var_(a) like this then:
(a == 1) ? (Var_1) : (Var_2)
This would be expandable for as much values youd like, maybe together with a macro. But i think this is not really what you are looking for, is it?
new a = 1;
then: Var_(a) would be Var_1
a = 2: Var_2 and so on?
Afaik this is not possible in that way. What you could try is a ? condition (dont know how it is called
)you would write (create) Var_(a) like this then:
(a == 1) ? (Var_1) : (Var_2)
This would be expandable for as much values youd like, maybe together with a macro. But i think this is not really what you are looking for, is it?

