Re: Should .assuming be always non-mutating?

2005-07-04 Thread Larry Wall
On Mon, Jul 04, 2005 at 05:33:37PM +0200, Ingo Blechschmidt wrote: : Hi, : : .assuming is non-mutating on Code objects: : : my $subref = &some_sub; : my $assumed_subref = $subref.assuming(:foo); : $subref =:= &some_sub;# true, $subref did not change I think .assuming implies a

Should .assuming be always non-mutating?

2005-07-04 Thread Ingo Blechschmidt
Hi, .assuming is non-mutating on Code objects: my $subref = &some_sub; my $assumed_subref = $subref.assuming(:foo); $subref =:= &some_sub;# true, $subref did not change Quoting S06: > The result of a use statement is a (compile-time) object that also > has an .assuming method,