Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can and does

6 views
Skip to first unread message

Dan Sugalski

unread,
Apr 15, 2003, 5:34:30 PM4/15/03
to perl6-i...@perl.org
Okay, I've added in two new ops to take advantage of the new vtable
entries. There's now a can and does op, which checks to see if a PMC
can or does a particular method or interface. They both look like:

can Ix, Py, Sz

with X set to true or false depending on whether Y can or can't do
the requested thing. (Same for does)

At the moment this'll unconditionally fail since nothing but
default.pmc does these, and it pitches a fit, but...
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk

Steve Fink

unread,
Apr 16, 2003, 12:53:22 AM4/16/03
to Dan Sugalski, perl6-i...@perl.org
On Apr-15, Dan Sugalski wrote:
> Okay, I've added in two new ops to take advantage of the new vtable
> entries. There's now a can and does op, which checks to see if a PMC
> can or does a particular method or interface. They both look like:
>
> can Ix, Py, Sz
>
> with X set to true or false depending on whether Y can or can't do
> the requested thing. (Same for does)
>
> At the moment this'll unconditionally fail since nothing but
> default.pmc does these, and it pitches a fit, but...

You left out the 'goto NEXT()'s to prevent the interpreter from
exploding in flames.

I've added them, as well as suppressing some "no return" warnings,
regenerating the native_pbc tests, and adding tsq & event stuff to
MANIFEST & MANIFEST.detailed.

Those native_pbc things are annoying.

Dan Sugalski

unread,
Apr 17, 2003, 10:07:33 AM4/17/03
to Steve Fink, perl6-i...@perl.org

D'oh! Thanks.

0 new messages