Larry Wall writes:
> : if $x.foo { print "$x has property foo" }
> : $x.bar = 1; # Or $x = $x but bar
>
> Or maybe the .bar notation is only for rvalues, and to create a
> property you have to say:
>
> $x but= bar;
I think that would be an unPerlish restriction; people who know how to
read a property would also expect to be able to set it in the same way.
> ... as long as we limit the .bar notation to rvalues or to lvalues on
> already-created properties. And in fact, we may be limiting the
> creation of properties to predeclared names,
That sounds like a much better solution.
And thanks for taking the time to answer Luke's questions so fully.
Smylers