On 12/6/07, Slava Pestov <[EMAIL PROTECTED]> wrote:

> This is the right place for any type of Factor question.

Thank you. There will be a lot of! ;-)

> Don't forget your USING: and your IN:.

Still haven't read what are they for. But I am in progress...

> Yes. Another approach:

But your approach read the input file in the memory all in once,
isn't it? One line a time is a requirement for this task.

> In 0.91 there is a 'while' word but it is almost the same as a tail
> recursion:
>
> [ A ] [ B ] [ C ] while
>
> : foo A [ B foo ] [ C ] if ;

I feel myself dumb, but what C is for? Is it not equal to

  : foo A [ B foo ] when ;

and then just calling C?

> You can use 'lines' to get a sequence of lines.

Factor 0.90 on windows/x86.32
( scratchpad ) stdio get lines .
snark meets aardvark
^Z
The die word was called by the library. Unless you called it yourself,
you have triggered a bug in Factor. Please report.

-- 
Cyril Slobin <[EMAIL PROTECTED]> `When I use a word,' Humpty Dumpty said,
http://wagner.pp.ru/~slobin/ `it means just what I choose it to mean'

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to