[DEPRECATION] ManagedStruct automatic resize on shape change #319

Open
plobsing opened this Issue Apr 12, 2010 · 0 comments

Comments

Projects
None yet
1 participant
@plobsing
Contributor

plobsing commented Apr 12, 2010

Changing the shape of a struct can occur for reasons other than the desire to reallocate, for example, when trying to view contents as different datatypes (emulating perl's pack/unpack).

Also reshapes can take several steps. Reallocating each step is suboptimal. In stead, an allocate/reallocate method should be called after the reshaping is complete to reallocate to the new desired shape.

Originally http://trac.parrot.org/parrot/ticket/1554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment