On 10/30/07, Pe=F1a, Botp <botp / delmonte-phil.com> wrote:
>
> i think 7stud meant this,
>
> ~> h=3DHash.new("hi")
> =3D> {}
>
> ~> h
> =3D> {}
>
> ~> h['a']=3Dh['a'] || 10
> =3D> "hi"
>
> ~> h
> =3D> {"a"=3D>"hi"}
>
> ~> h['b'] ||=3D 10
> =3D> "hi"
>
> ~> h
> =3D> {"a"=3D>"hi"}

Oh, good point. I want to call that a bug, but I can't quite put my
finger on where the exact problem is - something about [] not
returning a proper lvalue, or foo =3D foo not being a no-op.

martin