Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: perlapi magic: setting ISA from C code

by almut (Canon)
on Feb 23, 2009 at 00:39 UTC ( [id://745677]=note: print w/replies, xml ) Need Help??


in reply to perlapi magic: setting ISA from C code

I think you should be able to manipulate @ISA just like any other array, i.e. something like (untested):

av_push( get_av("SomeClassName::ISA",1), newSVpv("SomeBaseClass",0) );

Replies are listed 'Best First'.
Re^2: perlapi magic: setting ISA from C code
by kingkongrevenge (Scribe) on Feb 23, 2009 at 00:48 UTC
    We have a winner! Thanks. Don't know why I couldn't think of that.

    The sv_magic documentation is still confusing...

      Too many bananas?

       

       

      ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found