Hi Jon,

On Wed, Dec 2, 2009 at 7:50 AM, Jon Harper <[email protected]> wrote:
> Hi,
> Take a look at this page:
> http://docs.factorcode.org/content/word-button-pen%2Cui.gadgets.buttons.html

I fixed a couple of typos there.

> Apart from the obvious repetition in the list describing the tuple
> slots, the doc on this page mixes up the class button-pen and the word
> button-pen. Is there a way to fix it ?

The page doesn't document the execution behavior of the word, only the
class behavior. This is why it has a $class-description but not a
$description. Some words have both.

> Isn't bad to have a class and a
> word have the same name anyway ?

No, it's fine. If you do this, don't forget to use \ when passing the
class to new or boa though:

TUPLE: foo ... ;
: foo ( -- ) ... ;
: <foo> ( -- foo ) \ foo new ;

Slava

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to