# New Ticket Created by Allison Randal
# Please include the string: [perl #47674]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=47674 >
Setting the :vtable pragma on a sub should enable the 'self' shortcut
for the current invocant. As in the following code example where a
method is called from within a vtable override:
.sub main :main
$P1 = newclass "Foo"
$P2 = new "Foo"
$S1 = $P2
print $S1
.end
.namespace [ "Foo" ]
.sub get_string :vtable
self.'bar'()
.return ("stringy thingy\n")
.end
.sub bar :method
print "called bar\n"
.end
(Pulled from rejected ticket #42430.)
Allison