Hi,

Not sure if I'm misunderstanding how let is supposed to work, but I'm
getting some strange behavior when using it to bind symbols to
multiple values. Specifically, the 'good' word works as expected, but
the 'bad' word doesn't:

: good ( -- v ) [let | x [ 1 2 ] | x drop ] ;
: bad ( -- v ) [let | x [ 1 2 ] | x 2drop x drop ] ;

'good' returns 1, as expected, whereas 'bad' leads to a compile error
and adds nothing to the stack.

Alex

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to