At 8:54 PM -0700 8/16/04, chromatic wrote:
On Mon, 2004-08-16 at 11:30, Michel Pelletier wrote:

 I've noticed there are ops for interfaces, but no implementation or ppd
 yet.

Perl 6 has roles which are much more useful than interfaces -- in fact, interfaces are degenerate roles. See Apocalypse 12 for more.

        http://www.perl.com/pub/a/2004/04/16/a12.html

Parrot does/should have the 'does' op, which ought to check and identify
roleishness.  I don't know its current status.

does checks whether a class somewhere in the hierarchy of the object you're querying says it implements the interface you're asking after. Whether it has anything much to do with perl 6 roles is up in the air--there's some disagreement over that.


Discussion as to the differences between roles and interfaces should
probably happen on p6l ([EMAIL PROTECTED])

Not for this stuff, no. I'm not on perl6-language, if nothing else, so discussion there won't make any difference to what we do with parrot. :)


Looks like this isn't yet implemented. We need some interface add/remove/query ops akin to the add_parent op and its ilk, and some code in the core to walk the tree looking for interfaces. And documentation. That'd be good.

I should see if I can get a clear path through the network here today, as it ought to be pretty straightforward to do.
--
Dan


--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to