Question: "Dynamic assignment" of variables : Is this a documented feature ?

Hi
I inadvertently discovered that it was possible to create variables in a kind of dynamic way.
I wonder if the way i did  is something which is documented somewhere?

TIA
 

restart:

vars   := [a, b__c, t[1]];

[a, b__c, t[1]]

(1)

k := 1:
for i in vars do
  ``||i := k;
  k := k+1:
end do:

vars;

[1, 2, 3]

(2)

 


 

Download Assignement.mw

Please Wait...