Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

can and does

4 просмотра
Перейти к первому непрочитанному сообщению

Dan Sugalski

не прочитано,
15 апр. 2003 г., 17:34:3015.04.2003
– 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

не прочитано,
16 апр. 2003 г., 00:53:2216.04.2003
– 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

не прочитано,
17 апр. 2003 г., 10:07:3317.04.2003
– Steve Fink, perl6-i...@perl.org

D'oh! Thanks.

0 новых сообщений