Hi List, a couple of things related to my first steps into factor ...
--------- USING: kernel io io.encodings.utf8 io.files ; IN: t1 : t1a ( -- ) "c:/factor/work/t1/test.txt" utf8 <file-reader> [ dup stream-readln dup ] [ print ] [ drop drop ] while ; -------- When I refresh-all, I get :errors - print 1 semantic errors. I spent hours trying to get thing to compile, thinking it was broken, or I didn't understand something ... then I wondered, and just tried the word and it worked! <sigh> Even with the error, the word is compiled and works! Just another thing that took me too long to work out ... the while function consumes the item left on the stack by the predicate funct.. ah quotation, which is not clear from the documentation. That may just be I'm not in the head space yet ... Jonathan. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
