Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

The easy way to write XS code and work with Perl varaibles directly from C. (New resources on Class::HPLOO).

by gmpassos (Priest)
on Mar 07, 2005 at 21:16 UTC ( [id://437318]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
      use Class::HPLOO ;
    ...
          
      }
    
  2. or download this
    
    package Point ;
    ...
    
    1;
    
  3. or download this
    
      use Class::HPLOO ;
    ...
      }
    
  4. or download this
        sub[C] void move_y( SV* self , int mv_y ) {
          int y = self->{y}->int + mv_y ;
          self->{y} = int2sv(y) ;
        }
    
  5. 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.
        }
    
  6. or download this
    
        sub[C] SV* get_xy_ref( SV* self ) {
    ...
          return newRV_inc( ret ) ;
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://437318]
Approved by kvale
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found