5 CardinalInteger - Cardinal integers
9 .namespace [ 'CardinalInteger' ]
20 .sub 'onload' :anon :init :load
21 .local pmc cardinalmeta, intproto
22 cardinalmeta = get_hll_global ['CardinalObject'], '!CARDINALMETA'
23 intproto = cardinalmeta.'new_class'('CardinalInteger', 'parent'=>'Integer CardinalObject')
24 cardinalmeta.'register'('Float', 'parent'=>'CardinalObject', 'protoobject'=>intproto)
32 .sub 'ACCEPTS' :method
34 .return 'infix:=='(topic, self)
40 Returns a Perl representation of the CardinalInteger.
52 Returns a CardinalString representation of the CardinalInteger.
57 $P0 = new 'CardinalString'
63 =item downto(n, block)
65 Runs C<block> for each integer from the current value of the Integer down to n.
85 Runs C<block> for each integer from the current value of the Integer up to n.
111 # vim: expandtab shiftwidth=4 ft=pir: