Dan Sugalski:
# =item void init_pmc(INTERP, PMC* self, PMC* initializer)
....
# For example, if a class has the known properties "Size", 
# "Dimension" and "Color", they may be assigned the values 100, 
# 101, and 102. If the creator if the PMC knows enough about 
# the class to make the translation to numbers it may, 
# otherwise the strings may be used. So for the declaration:
# 
#     my @foo is Size(12) is Dimension(3) is Color("Green");
# 
# the init array may be [100, 12, 101, 3, 102, "Green"] or 
# ["Size", 12, "Dimension", 3, "Color", "Green"]. Note that, in 
# all cases, the array is an array of PMCs. (So you get either 
# an int PMC or a string PMC in the list of keys)

I assume that, at least for the Color property, the PerlArray
implementation would then go out to the stashes and look for a Color
property?

--Brent Dax <[EMAIL PROTECTED]>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)

Wire telegraph is a kind of a very, very long cat. You pull his tail in
New York and his head is meowing in Los Angeles. And radio operates
exactly the same way. The only difference is that there is no cat.
    --Albert Einstein (explaining radio)

Reply via email to