Ron Blaschke <[EMAIL PROTECTED]> wrote:

> I see.  Does this morphing work as designed?  Creating an array out of
> an undef feels somewhat wrong.

Yes and yes ;)
A longer answer is: all operators currently need an existing LHS. The
canonical way is:

  lhs = new Undef
  lhs = a <op> b

While we AFAIK don't have ops yet, where an array is created and the
morphing to an array is needed, Perl6 hyper operators are just doing that.
So the functionality is correct.

> I guess the lesson here is: Don't mess with Undef, it's ... undefined.

Or for the test case: check the return result of C<dlfunc>.

> Ron

leo

Reply via email to