On Wed, 11 Dec 2002, Dan Sugalski wrote:
> Are in. You can now get, set, delete, and get a hash of PMC
> properties. (Hopefully)
>
> Alas, no tests. Working on that, but if someone wants to beat me to
> it, feel free.
I would expect this:
new P0, .PerlInt
new P1, .PerlInt
set S0, "Brown"
set P0, "Yes"
setprop P1, S0, P0
set S0, "Black"
set P0, "No"
setprop P1, S0, P0
new P2, .PerlString
getprop P2, "Brown", P1
print P2
print "\n"
getprop P2, "Black", P1
print P2
print "\n"
end
to print:
Yes
No
In fact, it prints:
No
No
Is this a bug, or am I misunderstanding how properties are supposed to
work?
Simon