Question: uneval parameters

Question:uneval parameters

s.py 155 Maple

hi.

when i want to modify a parameter it's easy:

test1 := proc(x::uneval)
    x:=eval(x)+1;
    NULL;
end proc;

x:=5;
test1(x);
x;

ok x is now 6

How to do that with lists of names ?
ie writing a procedure test2 so that I can do that:

x:=10;
y:=20;
test2([x,y]);
x,y;
      11,21

thank you

 

Please Wait...