Re: Test.pm function not returning truth

2012-07-11 Thread Patrick R. Michaud
On Thu, Jul 12, 2012 at 08:31:38AM +0300, Gabor Szabo wrote: > Hi, > > I looked at lib/Test.pm and noticed that most (if not all) of the > functions have > some time measuring code in them and they return a timestamp instead > of the truth value. > > Would it be ok if I changed that so they will

Test.pm function not returning truth

2012-07-11 Thread Gabor Szabo
Hi, I looked at lib/Test.pm and noticed that most (if not all) of the functions have some time measuring code in them and they return a timestamp instead of the truth value. Would it be ok if I changed that so they will always return true/false? Gabor

[perl #114090] Declaration in string interpolation causes bogus redeclaration errror

2012-07-11 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #114090] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=114090 > < PerlJam> r: say "foo $( my $x = 3 + 4; "bar" ) baz"; <+p6eval> rakudo d8e7b6: OU

Re: Perl6 grammars -- Parsing english

2012-07-11 Thread Moritz Lenz
Hi Lard, sorry for the late and incomplete answer. Am 04.07.2012 15:09, schrieb Lard Farnwell: Hi Moritz, Thanks that was interesting. My investigation into grammars took a while but here are the results thus far: Grammar rules and regexes are just methods… I hadn't thought about what a g

Re: accepting incorrect syntax?

2012-07-11 Thread Gabor Szabo
On Wed, Jul 11, 2012 at 11:02 AM, Moritz Lenz wrote: > Am 11.07.2012 09:55, schrieb Gabor Szabo: > >> I wonder if the first one is a bug: >> >> >> use v6; >> my @x = ( >> { a => 1} >> {b => 2 } >> ); >> say @x.perl; >> >> prints Array.new({"b" => 2}) > > > This is actually cor

Re: accepting incorrect syntax?

2012-07-11 Thread Moritz Lenz
Am 11.07.2012 09:55, schrieb Gabor Szabo: I wonder if the first one is a bug: use v6; my @x = ( { a => 1} {b => 2 } ); say @x.perl; prints Array.new({"b" => 2}) This is actually correct. It parses as my @x = ( {a => 1}; {b => 2} ); Which is roughly the same as my @x =

accepting incorrect syntax?

2012-07-11 Thread Gabor Szabo
I wonder if the first one is a bug: use v6; my @x = ( { a => 1} {b => 2 } ); say @x.perl; prints Array.new({"b" => 2}) Almost the same code: use v6; my @x = ( { a => 1} {b => 2 } ); say @x.perl; ===SORRY!=== Malformed initializer Gabor