On Jun 15, 2009, at 4:41 PM, Slava Pestov wrote:

> The code in $[ ... ] must not access any values from the stack. The
> intention of the literals vocabulary is to pre-compute constant values
> at parse-time.

Thanks Joe and Slava for the information. Sorry to have overlooked it,  
and it explains why I had intermittent success.

On Jun 15, 2009, at 4:39 PM, Joe Groff wrote:

> You should just run
> « [ head ] 2each 2array » directly rather than try to use literals.

Small point, but I think in my example, it should be « [ head ] 2each  
3array ».

In my particular use, I >AM< creating multi-dimensional array  
constants for later use, so I think the literal vocabulary would be  
appropriate.

I suppose I could include more of the code that generates the two  
source arrays, but it does bring up the question of how to accomplish  
this by other means. Time to go back and re-read the vocabulary pages...

Thanks again, Charles


------------------------------------------------------------------------------
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

Reply via email to