/*
=item C<static PMC* undef(Interp* interpreter)>
Returns a C<PerlUndef> PMC.
=cut
*/
static PMC* undef(Interp* interpreter)
{
return pmc_new(interpreter, enum_class_PerlUndef);
}
Look at all the redundancy there. And consider all the vtable methods that have multiple implementations across many PMCs. Making programmers type the same thing over and over is just mean; it all the fun out of the coding. Something like this would be a lot better:
=method undef
=returns a C<PerlUndef> PMC.
{
return pmc_new(interpreter, enum_class_PerlUndef);
}
Everything else that's omitted here is, or should be, available elsewhere
If we want people to help us finish the PMCs, why not make their job a little more pleasant?
No reason at all (Score:1)
Like the opcode files, PMC source is lightly processed C code, with just enough filtering to make things work out OK. Then it was on to the next thing needing thumping...
Formatting is b0rken (Score:1)