On Aug 7, 2007, at 1:26 PM, jerry gay wrote:
as of r20545, you can now decorate pmc methods to give the compiler a
hand in warning you about bad code, just like we've been doing
throughout parrot core (a.k.a. seatbelts.) for a list of decorators,
see include/parrot/compiler.h. for more info, see
docs/dev/seatbelts.pod
for example, in r20546, Null PMC's get_pointer method now looks
like this:
PARROT_CAN_RETURN_NULL
void* get_pointer() {
return PMCNULL;
}
Thanks so much for doing this.
What about being able to do NOTNULL() and NULLOK() on args to the
PMC? For the decorators to really make sense, we need both halves of
the equation.
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance