Slava Pestov wrote:

> Is your new read-only word shadowing the one in syntax?
>
> TUPLE: read-only ;
> USE: syntax
> TUPLE: abc { a read-only } ;
>
> should work fine.

Try the example in my note.

The documentation says that the slot attribute specifier is "one of initial: 
or read-only". However, TUPLE: seems to allow both to be specified 
simulataneously. This is what breaks when you define a 'read-only' class in 
any vocabulary.

Ed

> On Wed, Dec 3, 2008 at 1:35 AM, Eduardo Cavazos <[EMAIL PROTECTED]> 
wrote:
> > Slava,
> >
> > This:
> >
> >        TUPLE: read-only ;
> >
> > Breaks the 'read-only' attribute. I.e. these won't work after a
> > 'read-only' class is defined:
> >
> >        TUPLE: <abc> { a read-only initial: 10 } ;
> >
> >        10 <abc> boa
> >
> > Ed
> >
> > -------------------------------------------------------------------------
> > 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
>
> -------------------------------------------------------------------------
> 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



-------------------------------------------------------------------------
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