factor-talk
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Factor-talk] Using the literals vocabulary? Joe Groff Mon Jun 15 14:00:56 2009
> Hi all-
>
> I've been using the literals vocabulary for a number of things, but I
> get a "Data stack underflow" when I say this:
>
>> ( scratchpad ) USE: literals
>> ( scratchpad ) IN: scratchpad
>> ( scratchpad ) { { 1 2 3 } { 1 2 3 } { 1 2 3 } }
>>
>> --- Data stack:
>> { ~array~ ~array~ ~array~ }
>> ( scratchpad ) { 3 2 1 }
>>
>> --- Data stack:
>> { ~array~ ~array~ ~array~ }
>> { 3 2 1 }
>> ( scratchpad ) { $[ [ head ] 2each ] }
$[ ] does not have access to the runtime datastack—its own datastack
will be empty when the quotation is called. You should just run
« [ head ] 2each 2array » directly rather than try to use literals.
-Joe
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Factor-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/factor-talk
- [Factor-talk] Using the literals vocabulary? Charles Turner
- Re: [Factor-talk] Using the literals vocabulary? Joe Groff <=
- Re: [Factor-talk] Using the literals vocabulary? Slava Pestov
- Re: [Factor-talk] Using the literals vocabulary? Charles Turner
- Re: [Factor-talk] Using the literals vocabulary? Joe Groff
- Re: [Factor-talk] Using the literals vocabulary? Charles Turner