Navigation Menu

Skip to content

Commit

Permalink
PDD17: Mention init_int VTABLE
Browse files Browse the repository at this point in the history
Message mostly copied from init_pmc explanation.  I figured a
repetitive description is better than none.
  • Loading branch information
Benabik committed Oct 17, 2011
1 parent 951dcf7 commit 2ebdb70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/pdds/pdd17_pmc.pod
Expand Up @@ -434,6 +434,16 @@ null value passed as the initializer parameter is allowed.
NOTE: It is strongly suggested that init_pmc(PMCNULL) be equivalent to
init(), though there will of necessity be exceptions.

=item init_init

void init_int(INTERP, PMC *self, INTVAL initializer)

Alternative entry point called when a PMC is first instantiated. Accepts an
integer parameter used to initialize the given object. Interpretation of the
integer initializer is left open, each PMC is free to choose its own
implementation. This is very useful for PMCs that require an integer size
parameter and is used as such in FixedPMCArray and related.

=item instantiate

PMC* instantiate(INTERP, PMC *self, PMC *init)
Expand Down

0 comments on commit 2ebdb70

Please sign in to comment.