develooper Front page | perl.perl6.internals | Postings from August 2002

[PROPOSAL] interface for custom pmc functions

Thread Next
From:
Josef Hook
Date:
August 22, 2002 05:59
Subject:
[PROPOSAL] interface for custom pmc functions
Message ID:
Pine.GSO.4.21.0208221436560.1350-100000@chicken.stacken.kth.se

It's a fact that we have a problem with pmc's that has custom functions
which dosent fit into the vtable. Therefore i suggest we add a pointer in
pmc struct that points to a function list, Also adding 3
functions to vtable struct that manipulates this list. 

register_function( PMC *p, void *function_ptr ) 
unregister_function( PMC *p, "function name" )
replace_function( PMC *p, "function name" )

Having it this way it will be possible to replace functions when loading 
libraries.What do you think Dan?


/josef




Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About