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 > > > > > > > The part about "$v" is a bug. It should just be > > "use of uninitialized value of type Str in string context" > > This now behaves: > > $ ./perl6-m > > print 'a'.WHAT; > use of uninitialized value of type Str in string context > True > > Closable with tests.
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?