5
Capture - Perl 6 Capture class
9
This file sets up the Perl 6 C<Capture> class.
13
.namespace ['Perl6Capture']
15
.sub 'onload' :anon :init :load
16
.local pmc p6meta, captureproto
17
p6meta = get_hll_global ['Perl6Object'], '$!P6META'
18
captureproto = p6meta.'new_class'('Perl6Capture', 'parent'=>'parrot;Capture Any', 'name'=>'Capture')
19
captureproto.'!IMMUTABLE'()
27
=item get_string() (vtable)
31
.sub '' :vtable('get_string') :method
36
.sub '' :vtable('get_number') :method
43
unless null $P0 goto end
58
Build a capture from its argument(s).
65
$I0 = isa arg, 'Perl6Scalar'
67
arg = root_new ['parrot';'Perl6Scalar'], arg
76
# vim: expandtab shiftwidth=4 ft=pir: