Am Montag, 23. April 2007 23:18 schrieb Jonathan Worthington:
> Proposal: PMCs can have attributes just as classes in HLLs have
> attributes. This is somewhat related to variable sized PMCs; note you
> can leave PMC headers fixed size and just have a pmc_ext like structure
> that is the variable sized bit. The implementation of attributes and
> attribute inheritance would be pretty standard.

The variable-sized proposal just allocates differently (non-resizable) PMCs. 
Same thing as we are already allocating differently sized GC-able items 
(PObjs) namely: PMC, Buffer, String, and Buffer-like. The only differences 
are some flag bits and the presence of a vtable.

> == Introspection
> While every instance of an object instantiated from a Parrot Class has
> the Class available for introspection purposes, PMCs do not. This needs
> to change, and here's something I think will work.

This is what the cstruct-Proposal is for. The cstruct is describing the 
internals of a PMC (which happen to consist of C structure items)

leo

Reply via email to