[RPL/2] library in interactive mode

DEMAINE Benoit-Pierre benoit at demaine.info
Mar 28 Sep 20:52:14 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


| TEST
| <<
|     << X sin >>
|     steq draw
|  >>
|
| you cannot execute << X sin >>. In a second time, you can write
|
| TEST_2
| <<
|     << X sin >> 'A' sto
|     A steq draw
|  >>
|
| and you can ask why A is not executed. In both cases, the operations on
| the stack are the same and if you authorize the evaluation of A in the
| second case, you have to authorize the evaluation of << X sin >> in the
| first case...

In fact, from what I remember, with HP48,
<< stuff >>
are always put in the stack, whereas the default action of variable is
to execute their content;

It is a bit tricky: TEST d work fine on HP48, whereas TEST_2 would not
because at the call of A, it s content would be executed:
if you hit << stuff >> in cmd line, it is put in the stack, but if a
program in stored in a var, and you evaluate the var, then the prog is run.

- --
DEMAINE Benoît-Pierre http:/www.demaine.info/
\_o< apt-get remove ispell >o_/
There're 10 types of people: those who can count in binary and those who
can't
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBWbLdGWSTLbOSw8IRAufHAJ9BqV4guy8ebYl9gLvmegv4FCtN8ACfagNe
zfKAbWqX2Wv2j0U4ZENEfGc=
=pjev
-----END PGP SIGNATURE-----



Plus d'informations sur la liste de diffusion RPL2