Storage by reference, unquote( ) cmd

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Storage by reference, unquote( ) cmd

Message par compsystems » lun. déc. 24, 2018 2:05 am

Storage by reference, unquote( ) cmd

purge(b); a:=b; unquote(a):=3; [enter] returns (xcas online)
b -> 3, but the value of a, has not been assigned to 3

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Storage by reference, unquote( ) cmd

Message par parisse » lun. déc. 24, 2018 5:58 pm

That's precisely what is expected. b is assigned to 3, and a remains assigned to b (and evals to 3 in interactive mode).

Répondre