At 11:07 AM -0700 10/18/02, Brent Dax wrote:
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?
That's entirely up to the PerlArray class, but I'd expect that it would.
--
                                        Dan

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

Reply via email to