2008/12/1 Slava Pestov <[EMAIL PROTECTED]>

> On Sun, Nov 30, 2008 at 6:19 PM, Alex Chapman <[EMAIL PROTECTED]>
> wrote:
> > And then we have words. These are also symbols, but when executed they do
> > something arbitrary. This could include pushing their own symbol, so in a
> > way symbols are a subset of words:
>
> All of the things you described (symbols, classes) are also words.
>

Ok, I was assuming that the class symbol and a word in the same vocab with
the same name were still separate symbols. As they're the same symbol, you
can do:

TUPLE: foo ;
: foo ( -- ) "blah" . ;

\ foo new class execute
  => "blah"
-------------------------------------------------------------------------
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

Reply via email to