[Factor-talk] Treating tabs as whitespaces in source code

2009-06-15 Thread Samuel Tardieu
Right now, tabs are not considered whitespaces between tokens in source code. This has two implications: - it is possible to define a word called a b (with a tab in its name) ; - it is impossible to use tabs to indent source code (not that I like it, but some of my students where

[Factor-talk] Using the literals vocabulary?

2009-06-15 Thread Charles Turner
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

Re: [Factor-talk] Using the literals vocabulary?

2009-06-15 Thread Joe Groff
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

Re: [Factor-talk] Using the literals vocabulary?

2009-06-15 Thread Slava Pestov
Hi Charles, 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. Slava On Mon, Jun 15, 2009 at 2:51 PM, Charles Turnervze26...@optonline.net wrote: Hi all- I've been using the literals

[Factor-talk] OpenSTV

2009-06-15 Thread Hugh Aguilar
I found some software www.OpenSTV.org that does voting simulation. I think that I want my votsim to allow the user to write his own voting method in Factor. It is fairly easy to invent a voting method, such as my double method, and I think that most users will want to try their hand at doing