- or download this
use Class::HPLOO ;
...
}
- or download this
package Point ;
...
1;
- or download this
use Class::HPLOO ;
...
}
- or download this
sub[C] void move_y( SV* self , int mv_y ) {
int y = self->{y}->int + mv_y ;
self->{y} = int2sv(y) ;
}
- or download this
sub[C] SV* get_xy_ref( SV* self ) {
AV* ret = newAV() ; // create an array.
...
return \{ret} ; // return a reference to the array.
}
- or download this
sub[C] SV* get_xy_ref( SV* self ) {
...
return newRV_inc( ret ) ;
}