> 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 Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk