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

Re: [perl #31975] [PATCH] non-vtable methods on builtin pmcs

2 views
Skip to first unread message

Chromatic

unread,
Oct 13, 2004, 9:28:25 PM10/13/04
to p6i, bugs-bi...@rt.perl.org
On Wed, 2004-10-13 at 13:33, Sam Ruby wrote:

> Index: lib/Parrot/Pmc2c.pm

> +sub proto ($$) {
> + my ($type, $parameters) = @_;

If these are methods (and this appears to be a class method), you can
leave off the function prototype; Perl doesn't do anything with it:

sub proto {
my ($type, $parameters) = @_;

It's not a bad thing to have, but it goes unused. I'd remove it,
especially because the method documentation does a better job of
explaining the expected parameters already.

Leopold Toetsch

unread,
Oct 14, 2004, 4:11:52 AM10/14/04
to perl6-i...@perl.org
Sam Ruby <parrotbug...@parrotcode.org> wrote:

> How about:

> METHOD INTVAL find(PMC* substr) {

Sure, we need a return value ;)

> Patch attached. Should the Object parameter be named "pmc" or "self"?

Great. I'd say for consistency "pmc".

> - Sam Ruby

Thanks, applied.
leo

0 new messages