HP Forums
Storage by reference, unquote( ) cmd - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Storage by reference, unquote( ) cmd (/thread-12017.html)



Storage by reference, unquote( ) cmd - compsystems - 12-24-2018 02:01 AM

code:

purge(c); a:=c; unquote(a):=3; [enter] returns
(a)->3 What does this mean? I expected the value of a = 3 and c = 3


RE: Storage by reference, unquote( ) cmd - DrD - 12-24-2018 11:49 AM

Since the unquote(), XCAS command, is not, currently, part of the Prime's command set, your steps create a general purpose variable named unquote(a), and then set it's contents to 3.

[To see for yourself]
After entering your steps at the command line, type: unquote(a) ==> 3

Assuming that CAS equals XCAS, will reveal that, often, it doesn't meet your expected result!

[To fix the CAS vs. XCAS conundrum]
1. Consider moving; (to the XCAS forum), where the value of your expertise can be directly demonstrated.
2. If you don't see an XCAS command in the Prime Toolbox, expect trouble.