Simon Glover wrote:

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"

hash keys are only referenced not copied into the hash. So you reset here the first key to "Black" ...


 In fact, it prints:

  No
  No

... which explains this.


 Simon

leo




Reply via email to