Hell list,

I've discovered Factor some days ago and am really impressed! On the search
for more information I couldn't believe that there is no community / forum
/ whatever - except this mailinglist - where users can exchange. So I've
created a Google+ community for the Factor programming language. I don't
include a link here, please search for "Factor Language" in Google+ and you
will find it. I would be glad if some users join.

I have also a first question:

I'm trying to create a word which recursive loops over all files in a
directory and sums the filesizes. I entered the following steps into the
listener:

home
[ 0 [ file-info size>> + ] each ]
with-directory-files

But it results in an error:

"Generic word length does not define a method for the fixnum class.
Dispatching on object: 0"

I think I didn't fully understood the principles of Factor, because I
thought Factor will:

1. put home on the stack
2. put the [ ... ] on the stack
3. execute [ ... ] on home
4. put 0 on the stack
5. add file-info size>> to the top of the stack for each file

Concatenative programming is really new to me, so I hope this question is
not to annoying ;-)

Best regards,
Marc
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to