At 02:48 PM 9/26/2001 -0700, Hong Zhang wrote:
> > >Dan, can you explain how assignment will work for Perl6 mapping over
>Parrot,
> > >and what mechanisms will be there to be used by other languages?
> >
> > When you assign to a PMC, the destination PMC's "assign to me" vtable
> > function will be called. If that function doesn't like the inbound type,
>it
> > throws an exception. The PMC flags section has a flag to note whether
> > typing should be enforced.
>
>Can you explain how "tie" works in this context? If my memory is correct,
>Larry said the "tie" is on variable, not on value. This is pretty remote
>concept to most weak typed language, where variables do not carry any
>type information.
Sure. Tie alters the behaviour of assignment and value retrieval. A tied
variable has those two sets of vtable functions overloaded.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk