Paste: Tuple slot accessor problem

Author: Rayne
Mode: factor
Date: Thu, 23 Jul 2009 01:39:03
Plain Text |
TUPLE: cmdargs os-conf files ;
C: <cmdargs> cmdargs

: cmdwork ( -- cmdargs ) (command-line) dup first swap rest <cmdargs> ;

: doconvert ( cmdargs -- )
    files>> [ dup read-file convert swap write-file ] each ;

: main ( -- ) cmdwork doconvert ;

Annotation: Error

Author: Rayne
Mode: factor
Date: Thu, 23 Jul 2009 01:39:41
Plain Text |
resource:work/wnlc/wnlc.factor: 

15:     files>> [ dup read-file convert swap write-file ] each ;
               ^
No word named ``files>>'' found in current vocabulary search path

New Annotation

Summary:
Author:
Mode:
Body: