On Wed, Oct 25, 2006 at 11:02:59PM -0700, Allison Randal wrote:
> [EMAIL PROTECTED] via RT wrote:
> >On Sun Oct 01 16:22:10 2006, mdiep wrote:
> >>At the OSCON 2006 Hackathon, it was decided that we should separate
> >>vtables from methods and add a new :vtable label for PIR subs to mark
> >>them as vtable functions.
> >
> >Just to check, that this is still meant to happen? Anyone feel it should
> >be put off until the objects/namespaces stuff is sorted out, or shall I
> >just dive right in?
>
> This is the main thing Chip and I talked about in our last face-to-face
> meeting. We came up with 3 basic parameters: whether a method is a
> vtable method, whether it has a vtable name distinct from the method
> name, and whether it has a method name at all (or is anonymous, i.e.
> only a vtable method). The interface I scrawled out over coffee is:
>
> # method name is the same as vtable name
> .sub get_string :method :vtable
>
> # accessible as either $obj.stringify() or vtable
> .sub stringify :method :vtable('get_string')
>
> # accessible only as vtable
> .sub get_string :method :anon :vtable
> .sub stringify :method :anon :vtable('get_string')
> ...
+1
Pm