On Mon, Sep 04, 2006 at 08:54:02PM +0200, TSa wrote:
: But are assignment ops allowed as initializer?
:   my $z = $p but= { .y = 17 };

Why not?  It's only the first = that's potentially special.  (And it's
only for non-my, since my's = is an ordinary assignment at normal
run time.)  I don't see much syntactic difference between your example and

    state $z = $p += 17;

The fact that both of them modify $p in passing is unrelated to the
eventual use of the value to initialize something else.


Reply via email to