develooper Front page | perl.perl6.internals | Postings from February 2001

Re: PDD 2, vtables

Thread Previous | Thread Next
Dan Sugalski
February 18, 2001 16:47
Re: PDD 2, vtables
Message ID:
At 12:45 AM 2/19/2001 +0000, Alan Burlison wrote:
>Dan Sugalski wrote:
> > >If PMC is a pointer to a structure, "new" will need to allocate memory 
> for a
> > >new structure, and hence the value of mypmc will have to change.
> >
> > Nope. PMC structures will be parcelled out from arenas and not malloc'd,
> > and they won't be freed and re-malloced much. If we're passing in a PMC
> > pointer, we won't be reallocating the memory pointed to--rather we'll be
> > reusing it.
>So how do you get hold of a PMC from the arena in the first place?

Grab one via a utility function. getPMC() or something of the sort.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About