On Wed Sep 16 07:56:33 2015, b...@abrij.org wrote:
> On Tue Jan 20 13:39:43 2015, barto...@gmx.de wrote:
> > On Wed May 14 10:24:26 2014, coke wrote:
> > > On Thu Jun 28 09:52:22 2012, sisar wrote:
> > > > $ perl6 --version
> > > > This is perl6 version 2012.06-41-g88a9d69 built on parrot 4.5.0
> > > > revision RELEASE_4_5_0
> > > >
> > > > In Rakudo's REPL:
> > > >
> > > > > print 'a'.WHAT;
> > > > use of uninitialized variable $v of type Str in string context
> > > > True
> [...]
> > This has changed slightly:
> >
> > $ ./perl6-m
> > > print 'a'.WHAT
> > use of uninitialized value <element> of type Str in string context
> > in
> > block <unit> at <unknown file>:1
> >
> > True
> >
> > So, now there is an additional '<element>' in the warning.
> >
> > Apart from that I found the warning message not too awesome. If I
> > understand correctly, print() can only print objects of type Str,
> > while say() calls .gist on all non-Str objects
> > (http://design.perl6.org/S32/IO.html#print%28%29). Maybe it would
> > make
> > sense to add the first point to the warning message?
> 
> This is now:
> 
> $ perl6
> 
> > print 'a'.WHAT
> Use of uninitialized value of type Str in string context
> Any of .^name, .perl, .gist, or .say can stringify undefined things,
> if needed.  in block <unit> at <unknown file>:1
> True
> 
> 
> Tests have been added for the typename, and the help message, but it
> is hard to add tests for random leaky things being added later on
> because we don't know what they might look like.

This looks good to me, thanks! I'm closing this ticket as 'resolved'.

Reply via email to