[RPL/2] Please explain this behaviour
Adrian Blake
adrian.blake at ieee.org
Jeu 13 Déc 11:11:50 CET 2007
RPL/2> clear
RPL/2> { 2 3 + } list-> drop eval
1: 5
RPL/2>
as expected, good
RPL/2> { 3 4 * } list-> drop eval
3: 5
2: { 3
4
* }
1: 12
RPL/2>
also as expected, good
RPL/2> clear
RPL/2> { 2 3 { 3 4 * } + + } list-> drop eval
+++Error : Invalid argument type for << { 2 3 { 3 4 * } + + } list-> drop eval >> command
3: 2
2: 3
1: +
RPL/2>
result should be 17
or should it be this
{ 2 3 { 3 4 * } list-> drop eval + + } list-> drop eval
no ..fails
So what is the correct syntax?
Adrian
--
Adrian Blake
Molonglo Radio Observatory
University of Sydney
1152 Hoskinstown Rd
Bungendore 2621
ph. 02 62382262 mobile 0407 232 978
http://150.101.125.30/images
Plus d'informations sur la liste de diffusion RPL2