perl6-internals
[Top] [All Lists]

Re: [svn:parrot-pdd] r30620 - trunk/docs/pdds/draft

To: Bob Rogers <rogers-perl6@rgrjr.dyndns.org>, p2 <parrot-porters@perl.org>
Subject: Re: [svn:parrot-pdd] r30620 - trunk/docs/pdds/draft
From: Allison Randal <allison@perl.org>
Date: Sat, 30 Aug 2008 11:56:45 +0200
Delivered-to: mailing list perl6-all@perl.org
Delivered-to: perl6-all-poster@perl.org
Delivered-to: mailing list perl6-internals@perl.org
Delivered-to: perl6-internals@perl.org
Delivered-to: perlmail-parrot-porters@onion.perl.org
Delivered-to: parrot-porters@perl.org
In-reply-to: <18616.45937.594112.322154@rgrjr.rgrjr.dyndns.org>
List-help: <mailto:perl6-all-help@perl.org>
List-id: <perl6-all.perl.org>
List-id: <perl6-internals.perl.org>
List-post: <mailto:perl6-all@perl.org>
List-subscribe: <mailto:perl6-all-subscribe@perl.org>
List-unsubscribe: <mailto:perl6-all-unsubscribe@perl.org>
Mailing-list: contact perl6-all-help@perl.org; run by ezmlm
References: <20080828160953.46095CB9DD@x12.develooper.com> <48B6CECD.5080903@casella.verplant.org> <48B70710.3090106@perl.org> <18615.20675.763511.473348@rgrjr.rgrjr.dyndns.org> <48B7BF29.5060805@perl.org> <18615.61392.940609.172884@rgrjr.rgrjr.dyndns.org> <48B801AC.8050206@perl.org> <18616.45937.594112.322154@rgrjr.rgrjr.dyndns.org>
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)
Bob Rogers wrote:

My sense of the usage on this list is that "multisub" means a MultiSub
PMC and a "multimethod" is what you add to the MultiSub when you define
a sub with the :multi keyword.  Am I the only one who finds this a
useful distinction?

Oh, I see. No wonder this conversation has been confusing.

If "multisub" and "multimethod" are to be used at all, a "multisub" is a MultiSub PMC when it's invoked as a sub, and a "multimethod" is a MultiSub PMC when it's invoked as a method (marked as ':multi :method'). Then a "multivtable" would be a MultiSub PMC invoked as a vtable function (marked as ':multi :vtable').

A particular sub object that's stored in a MultiSub is a "variant" of the multi (whether it's a multisub, multimethod, or multivtable).

Allison


<Prev in Thread] Current Thread [Next in Thread>