On Sun, Oct 26, 2008 at 12:33:21PM -0700, Carl Mäsak wrote:
> Rakudo r32141 fails to accept undef as a value to typed variables.
> 
> $ ./perl6 -e 'my Int $a = undef'
> Type check failed
> [...]
> 
> Should work according to S02.

Yes, this is a bug in Rakudo.  We're likely to be revising all of
assignment and container semantics soon, so this should be done as
part of that.

In general, any container can contain an undefined type (S02), and
per a conversation on #perl6 assigning a Failure object causes
its associated exception to be marked as unhandled [1].  In fact,
I suspect this is true for any cloning of a Failure object.

1.  http://irclog.perlgeek.de/perl6/2008-10-27#i_650223

Thanks,

Pm

Reply via email to