[perl #128017] enum treats a Seq of Pairs as a List of Str

2017-11-28 Thread Larry Wall via RT
Fixed in 754664ed54aea24f9c9162002b6e68aadd311412. On Thu, 28 Apr 2016 07:06:42 -0700, gfldex wrote: > enum Bits ( (('Bit-' X~ 1..8) Z=> (1, 2, 4 ... 256)) ); dd Bits.enums; > # OUTPUT«{"Bit-1\t1" => 0, "Bit-2\t2" => 1, "Bit-3\t4" => 2, "Bit- > 4\t8" => 3, "Bit-5\t16" => 4, "Bit-6\t32" => 5,

[perl #122929] quoted LHS of pair constructor inside enum definition makes elements be ignored

2017-11-28 Thread Larry Wall via RT
Fixed in 754664ed54aea24f9c9162002b6e68aadd311412. On Wed, 08 Oct 2014 05:20:07 -0700, timo wrote: > compare: > > > perl6-m -e 'enum Bug ("foo" => -1, "A", "B"); say +A; say +B;' > > 1 > > 2 > > and: > > > perl6-m -e 'enum Bug (foo => -1, "A", "B"); say +A; say +B;' > > 0 > > 1 > >

[perl #130446] [REGRESSION] [LTA] Creating an enum from a Hash does not work but no longer warns (enum Bits (%thing))

2017-11-28 Thread Larry Wall via RT
Fixed in 754664ed54aea24f9c9162002b6e68aadd311412. Note however, that there's a braino above, since the 'my' is initialized after the value is needed. So the fix is to warn about an empty variable, not to make it work. (It does work if you make it a constant, or put the my inside a BEGIN.)

[perl #130041] [BUG] Pair in enum declaration should either DWIM or parsefail

2017-11-28 Thread Larry Wall via RT
Actually, the Z=> misbehavior is already called out in #128017. On Tue, 28 Nov 2017 00:04:05 -0800, larry wrote: > This also showed up when doing things like: > enum Foo ( Z=> 1,2,3); > > Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed. > > > On Mon, 07 Nov 2016 11:37:06

[perl #130041] [BUG] Pair in enum declaration should either DWIM or parsefail

2017-11-28 Thread Larry Wall via RT
Actually, the Z=> misbehavior is already called out in #128017. On Tue, 28 Nov 2017 00:04:05 -0800, larry wrote: > This also showed up when doing things like: > enum Foo ( Z=> 1,2,3); > > Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed. > > > On Mon, 07 Nov 2016 11:37:06

[perl #130041] [BUG] Pair in enum declaration should either DWIM or parsefail

2017-11-28 Thread Larry Wall via RT
This also showed up when doing things like: enum Foo ( Z=> 1,2,3); Fixed in d9021cf16e7df051c5e17c33919c9bde44c5e0db but tests needed. On Mon, 07 Nov 2016 11:37:06 -0800, FROGGS.de wrote: > m: enum Foo ( A => 42, 'B', 'C', 'D' ); say +B > rakudo-moar e10f76: OUTPUT«43␤» > > m: enum Foo (

[perl #131991] [REGEX] Longest Alternation followed by an Alternation fails

2017-08-29 Thread Larry Wall via RT
Yes, as noted above, this is a dup of rejected ('better docs needed', really) ticket #130562.

[perl #131991] [REGEX] Longest Alternation followed by an Alternation fails

2017-08-29 Thread Larry Wall via RT
Yes, as noted above, this is a dup of rejected ('better docs needed', really) ticket #130562.

[perl #131922] [LTA] "Variadic" or "slurpy"?

2017-08-18 Thread Larry Wall via RT
Only *@foo and *%foo are slurpy, as in "slurping up the rest of the arguments. But the term "variadic" refers to all optional arguments including named ones, so it would be incorrect to call those "slurpy", because they don't. It's like the difference between * and ? in regex. Larry On Fri,

[perl #131922] [LTA] "Variadic" or "slurpy"?

2017-08-18 Thread Larry Wall via RT
Only *@foo and *%foo are slurpy, as in "slurping up the rest of the arguments. But the term "variadic" refers to all optional arguments including named ones, so it would be incorrect to call those "slurpy", because they don't. It's like the difference between * and ? in regex. Larry On Fri,

[perl #131695] [LTA] Confusion in precedence with <<$foo>>[0]

2017-07-04 Thread Larry Wall via RT
We now warn on the ambiguity of >> or » when used where it could easily be intended as either a hyper or the quotewords terminator. While we could, in theory, do some lookahead to try to suppress this warning in some cases, it will be brittle in the face of languages that mutate the postfix

[perl #123572] [BUG] :256[list of numbers] wrongly allows the numbers to exceed 255 in Rakudo

2017-06-02 Thread Larry Wall via RT
On Fri, 09 Jan 2015 10:59:08 -0800, masak wrote: > m: say :256["☺".ords] > rakudo-moar c5dcdf: OUTPUT«9786␤» > m: say :256[0x263a] > rakudo-moar c5dcdf: OUTPUT«9786␤» > seems we could use a check there... > m: say :256[256,256] > rakudo-moar c5dcdf: OUTPUT«65792␤» > * masak submits

Re: [perl #129884] Strange behaviour on "say".

2016-10-15 Thread Larry Wall
On Sat, Oct 15, 2016 at 09:59:01PM +0200, Timo Paulssen wrote: : Actually, I just tested the code and on my machine it always outputs : "test". The only difference between uncommenting "say 'run'" is that : it'll output "run" once at the end - or not. : : So now I'm wondering what i did

Re: [perl #129884] Strange behaviour on "say".

2016-10-15 Thread Larry Wall
On Sat, Oct 15, 2016 at 09:59:01PM +0200, Timo Paulssen wrote: : Actually, I just tested the code and on my machine it always outputs : "test". The only difference between uncommenting "say 'run'" is that : it'll output "run" once at the end - or not. : : So now I'm wondering what i did

Re: [perl #129346] [BUG] Whatever being called on where-blocked subroutine cannot handle the sigilless values correctly

2016-09-24 Thread Larry Wall via RT
On Fri, Sep 23, 2016 at 11:42:20PM -0700, Itsuki Toyota wrote: : # New Ticket Created by Itsuki Toyota : # Please include the string: [perl #129346] : # in the subject line of all future correspondence about this issue. : # https://rt.perl.org/Ticket/Display.html?id=129346 > : : : See the

Re: [perl #129346] [BUG] Whatever being called on where-blocked subroutine cannot handle the sigilless values correctly

2016-09-24 Thread Larry Wall
On Fri, Sep 23, 2016 at 11:42:20PM -0700, Itsuki Toyota wrote: : # New Ticket Created by Itsuki Toyota : # Please include the string: [perl #129346] : # in the subject line of all future correspondence about this issue. : # https://rt.perl.org/Ticket/Display.html?id=129346 > : : : See the

[perl #114438] [@LARRY] Rakudo gives an error about a missing 'self' when a subroutine uses an invocant parameter

2016-08-13 Thread Larry Wall via RT
Rakudo now gives a decent error (X::Syntax::Signature::InvocantNotAllowed), and there's even a test for it.

[perl #77664] [@LARRY] Rakudo parses q\\ as quoting but STD as routine q call

2016-08-13 Thread Larry Wall via RT
I'm fine with the rakudo behavior here.

[perl #77550] [@LARRY] $. in regexp accepted by Rakudo but not by STD

2016-08-13 Thread Larry Wall via RT
The chance of someone using $. inside a regex and meaning what it means in Perl 5 is minimal. Best to just leave this as a "can never match".

[perl #124568] [GLR] [@LARRY] 'Rakudo still uses Nil here' (Or bogus test?)

2016-08-13 Thread Larry Wall via RT
Test was bogus. Replaced with test that assumes Empty semantics on next. test fixed in 06f9c5d010986a7a8dde907971e25985e8ba4601

[perl #128550] [@LARRY] <[a..z]> ranges break grapheme awareness

2016-08-13 Thread Larry Wall via RT
The code generator in nqp for char ranges was incorrectly using ordat and ordfirst to find the character to compare, which throw away information on synthetic characters. We now use the getcp_s instruction instead, which leaves synthetics negative, so that they drop out of the character range

[perl #128860] [LTA] [@LARRY] List.invert only works if the list contains Pairs but the error message isn't very clear about that fact

2016-08-12 Thread Larry Wall via RT
Binding of the map routine internally now requires list elements to bind as Pair, which improves the error message. (The alternate approach of inserting a CATCH into the map closure could in theory produce an even better message, but it appeared to slow things down more than the Pair binding

[perl #123072] [GLR] 'for' loop in sink context isn't invoking block in sink context

2016-08-12 Thread Larry Wall via RT
Some method calls were not properly sunk as a final statement in a loop. Fix in 977797fa401856e5310155f13469b7e6ff5f620a Test in bc8fa4fd8d449573eb6001b5f43f8890f65b9196

[perl #127879] [BUG] map subroutine ignores the sequence in the specific case

2016-08-09 Thread Larry Wall via RT
The unwanted() routine needed to add an explicit sink to certain methods found in a block-final Want node. (Method calls for dispatch:<.=> and Pair.new are exempt, however. In the case of .=, it is 'nosink' because it's essentially going to cause a side effect anyway, and doing it twice tends

[perl #127563] repeat while loop not being entered when inside a routine and block

2016-08-05 Thread Larry Wall via RT
The repeat and loop constructs weren't properly self-sinking at statementlist level. Fixed in 589061eac14f2847e2c4b401d2ff2eb30c62675e Test in cbbff3ba0f1120fe7dfded0a980f9b73263f0868

[perl #128596] [BUG] repeat {} doesn't repeat when it's last item inside a sub called from a loop

2016-08-05 Thread Larry Wall via RT
The repeat and loop constructs were not properly sinking themselves at statementlist level. Fixed in 589061eac14f2847e2c4b401d2ff2eb30c62675e Untodo'd existing test.

[perl #128830] [LTA] Error on while (0){}

2016-08-03 Thread Larry Wall via RT
We now examine the preceding character, and if it's a closing brace, suggest use of whitespace before curlies taken as a hash subscript. Fixed in 7ec824e52ab5b285cda47179e6f41e452d870762

[perl #128811] non-associatives are somehow getting treated as list associatives

2016-08-02 Thread Larry Wall via RT
We've split the non-associative exceptions into the base class, X::Syntax::NonAssociative, with a subclass off X::Syntax::NonListAssociative. nqp's EXPR now calls a different method to fail list associativity, and rakudo provides the alternate method to get the appropriate message. nqp fix in

[perl #128766] Useless use of $a in sink context is spurious

2016-07-29 Thread Larry Wall via RT
The onearg form of reduce wasn't correctly marking wantedness of either the operator or the argument. Fixed in fc28b67185d711cf8e4b3f9e6987e1ceee34e37b. (We don't test sink warnings currenlty.)

[perl #128770] 5334cb725 causes erroneous sink on ($_ with "foo")

2016-07-29 Thread Larry Wall via RT
The logical ops andthen, notandthen, and orelse were not propagating wantedness to their thunky args. Fixed in 7ba6dbfae97f5ff9398336e49267d51606512df9. Note that we don't generally test sink warnings currently.

[perl #127965] [BUG] Texas hyper doesn't parse correctly in topicalized quoteword associative index assignment

2016-04-22 Thread Larry Wall via RT
Not A Bug. LTM requires it to recognize => over = inside, and then you're missing a >. Looking at it from the other direction, thinking that it will find the >> on the end and then back up to isolate the = is a subtle mental trap of two-pass parsing, which is typically forbidden in Perl 6.

[perl #127097] Error message for calling $.attr in BUILD could be improved

2015-12-31 Thread Larry Wall via RT
Now says: Virtual method call $.foo may not be used on partially constructed object (maybe you mean $!foo for direct attribute access here?) Fix in 5a69da88b9b16f916125add8f89aff68113a9877

[perl #127013] [BUG] 'while' only returns list from routine with explicit return

2015-12-30 Thread Larry Wall via RT
Fix in 386905f6f62f9fa3525c887a8a86fa48b22b4b35 and 37e742f0bb6f36f1a9d9a5f947c5c0de15d236c2 Test in ba521fa8101f3114c87ec1a295707cb68b5b

[perl #127069] [BUG] Simple loop dies

2015-12-30 Thread Larry Wall via RT
Dup of #127013. Tests for this particular ticket in a8bbde8fa06d5d55bc6d5879a0c84a669d7f0481

[perl #127022] [BUG] Can't find infix < in the middle of nowhere (a given)

2015-12-30 Thread Larry Wall via RT
Dup of #127013, see fix there.

[perl #126005] UNDO always fires for while, until, loop, whenever, with/without, (others too)?

2015-12-23 Thread Larry Wall via RT
Fixed in 02588190492349fabde00c5a15b873ea61a9333e Tested in 2f126a3ab7d0991767ca84c562b8f3ae97b25c4e There are no tests there for with or whenever, but those did not appear to misbehave when I tried them on the command line. Feel free to add more tests for those.

[perl #125769] Failure bound to variable, as result of if statement, sinks and throws

2015-12-19 Thread Larry Wall via RT
Fixed in 091ee7507464595e7712f4ae911d95d467e5281b Tests in 8b97aa4f6191affdd91da78607eca4ae6dc73b11

[perl #100232] Implementation details leak through in variable interpolation into regexes

2015-12-19 Thread Larry Wall via RT
A new restricted dialect of regex is implemented in 28ab83f947b4899a4f8698eee5bc056742f356f1 and 19d84be0066978f616ace6fa9f506e742161a378 Tests in 1becd7c9b456b707a14bfba40d672ec28945f199

[perl #118791] [BUG] Rxx doesn't thunk its rhs in Rakudo

2015-12-10 Thread Larry Wall via RT
Fixed, along with all the other metaops, in: 1e1556b1a25bc4c73a505fdd249d4179ffc813de 0a2303c0f6a2a3782fecb13db1523cb5442467de 67202d697d3fe48b800e95262bebe6da17bfcf49 e2e23fb8853808839884f23a0b8aa91f458fd310 97ef742f350e84dae275ed2dc9d453795f057dba 6516930c86d6ff4296ee8699a64eb1315eed2583 Tests:

[perl #120916] [BUG] Stubbed attributes in roles don't die at compose time like stubbed methods do in Rakudo

2015-11-26 Thread Larry Wall via RT
The purpose of stubbing is to guarantee the public interface is complete, and since the public interface of attributes is entirely via accessors, it suffices to merely stub the accessor, and leave it up to the class whether it should implement that name via an explicit method or an attribute

[perl #126746] [BUG] <![a]> doesn't match at EOS

2015-11-26 Thread Larry Wall via RT
Fixed for moarvm with nqp patch 2661d275d2427a1d3ceeed0f5ac9fb1494e4e122 (jvm not patched yet)

[perl #126746] [BUG] <![a]> doesn't match at EOS

2015-11-26 Thread Larry Wall via RT
nqp/jvm fix in f17e8c56ff171377999e468fe65e75a3ba807a4b tests in aef8ea1df4beed8f69b6ecb80784e78c6e2c6680

[perl #88340] backreferences to quantified captures are inconsistent in rakudo

2015-11-11 Thread Larry Wall via RT
Matching only the final match is not desirable, in my opinion. It should match the string traversed by all the matches in $0, including intervening separators, if any. The problem is that ~$0 has spaces interpolated, which will match only if the separators happen to be a single space, so there

[perl #126476] [BUG] non-matching S/// should return unmodified string

2015-11-06 Thread Larry Wall via RT
Fixed in 9e4902f772b0e86fe96771b22039aaf1a57fae34

[perl #126557] Fancy ‘’ quotes in rules

2015-11-03 Thread Larry Wall via RT
Fixed in 36a35142a0b7dadd65a5b09bcba7f460845ae3e9 Tests in 2ccb4443d61efd053419239203106e5636b021ce and 7cd9f97ccdad6299c3b6dc4d4b071c6580c0b66c

[perl #126394] [BUG] Assigning Failure to typed variable swallows Failure information

2015-10-19 Thread Larry Wall via RT
On Mon Oct 19 07:02:44 2015, elizabeth wrote: > Fixed with a31cc91a0d604a8a74529 . Tests are still needed > > > On 19 Oct 2015, at 03:42, Carsten Hartenfels (via RT) > follo...@perl.org> wrote: > > > > # New Ticket Created by Carsten Hartenfels > > # Please include the string: [perl #126394]

[perl #126318] [BUG] trait 'is default' on attributes has no effect

2015-10-16 Thread Larry Wall via RT
On Sat Oct 10 08:33:13 2015, FROGGS.de wrote: > say class { has Int $.foo is default(0) }.new.foo > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > class Foo { has Int $.foo is default(0) }; say Foo.new.foo > rakudo-moar 025ec1: OUTPUT«(Int)␤» > > I would expect that foo is zero in both cases. Even less

[perl #126370] [BUG] hyper multidim subscript doesn't meet postcircumfix:<[; ]> API

2015-10-16 Thread Larry Wall via RT
Fixed with 23248109c9c93db2774fcc9ce0c849a73a01fdad Tested with f8c0844fbffeac6022603cda8bfbc4f1f35e9a57

[perl #126359] [BUG] deconfuse language name and compiler in -v and -V

2015-10-14 Thread Larry Wall via RT
On Wed Oct 14 09:46:18 2015, larry wrote: > 09:39 < TimToady> HLL::Compiler is very confused about what is the language > name/version vs compiler name/version, and this shows up in both -v and -V > 09:40 < TimToady> "This is perl6 version 2015.09-373-g254c1a8" > 09:42 < TimToady> should be more

[perl #126241] operator names need to be valid, parsable Perl

2015-10-11 Thread Larry Wall via RT
nqp fix in a79e4abbe60d28f59b451416e7946ee433db7199 rakudo fix in 091637fd5ace48a0835fc8af786f2caa372381cf roast fix in dc3e1335232bb617b42d335ddbcc42be0a9dedaa

[perl #79174] [BUG] Either Rakudo or STD.pm6 is wrong about comma before 'given' statement modifier

2015-10-08 Thread Larry Wall via RT
Statement modifiers now behave as terminators. Tests in 6fa03d9816b1613762f12def4bbc556dbb5fb3d5

[perl #126292] [BUG] feeds don't correctly append to an argument list anymore

2015-10-08 Thread Larry Wall via RT
Whoops, posted the wrong examples. These actually show the difficulty: > p6 'say() <== map { $_ * 2 } <== 1...10' (2 4 6 8 10 12 14 16 18 20) > p6 'say() <== map { $_ * 2 },0 <== 1...10' (0 20) So this really looks like an insidious case of accidental one-arg semantics.

[perl #114464] Confusing parsing (and spec?) for my A $a .= new.foo

2015-10-08 Thread Larry Wall via RT
This works now, due to the precedence changes associated with adding the dot infix operator.

[perl #122395] Mu should smartmatch

2015-09-23 Thread Larry Wall via RT
Mu ~~ 0 now works but will always return False, since we don't want people to start using Mu as a numeric semipredicate.

[perl #67128] [BUG] Null PMC access when matching against grammar G in module M in a rule in Rakudo

2015-09-23 Thread Larry Wall via RT
Don't need this, using the Top or other rule name is sufficient.

Re: [perl #125391] Wrong order with %% $delim=.*

2015-06-12 Thread Larry Wall
Since the sort is stable, I believe it suffices simply to sort on the .to instead of the .from. Larry

Re: [perl #66538] [BUG] Rakudo falls in the infinite loop in Range with non-ascii

2009-06-16 Thread Larry Wall
On Mon, Jun 15, 2009 at 12:17:41PM -0700, Patrick R. Michaud via RT wrote: : A related question may be: what should the following produce? : : 1..4 :by(0) Same as 1 xx *, I suppose. I don't know if the range would be smart enough to report itself as an infinite iterator, so a mostly eager

Re: [perl #66538] [BUG] Rakudo falls in the infinite loop in Range with non-ascii

2009-06-16 Thread Larry Wall
On Mon, Jun 15, 2009 at 12:17:41PM -0700, Patrick R. Michaud via RT wrote: : More to the point, if you want to cycle through a range of codepoints, : you probably want: : : map { .chr }, 44032..45208; Well, almost certainly you'd want it in hex, but yes. : I agree that the string form of

Re: [perl #66606] Statmenet modifier's implied lexical scope hides my declaration

2009-06-16 Thread Larry Wall
We now spec a simple temporization (doesn't even have to be implemented using temp) for topicalizing statement modifiers. See latest S04. Larry

Re: [perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-25 Thread Larry Wall
On Thu, May 21, 2009 at 07:20:57PM +0200, Gianni Ceccarelli wrote: : On 2009-05-21 Larry Wall la...@wall.org wrote: : : dakkar rakudo: sub infix:R($a,$b) { $a ~ '-' ~ $b }; sub : : infix:RR($a,$b) { $a ~ '_' ~ $b }; say 'x' R 'y'; say 'x' RR 'y'; : : p6eval rakudo e6b463: OUTPUT«x-y␤x_y

Re: [perl #65878] Rakudo shouldn't allow metaops with the same modifier twice in a row

2009-05-21 Thread Larry Wall
On Thu, May 21, 2009 at 02:56:23AM -0700, Carl Mäsak wrote: : # New Ticket Created by Carl Mäsak : # Please include the string: [perl #65878] : # in the subject line of all future correspondence about this issue. : # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65878 : : : dakkar

Re: [perl #65782] [Bug] rakudo silently ignores remaining code after unmatched pod

2009-05-19 Thread Larry Wall
On Tue, May 19, 2009 at 10:24:41AM -0500, Patrick R. Michaud wrote: : On Tue, May 19, 2009 at 12:30:53AM -0700, Ahmad Zawawi wrote: : Given the following: : : 1.say; : =begin pod : =end pod1 : 2.say; : : The output is only 1 but should be 1\n2 or at least a runtime : error message for

Re: Right place for discussions?

2009-05-15 Thread Larry Wall
I should also point out that a lot of the brainstorming and thrashing out actually happens on IRC, specifically #perl6 at irc.freenode.net. (Though the s2n ratio is highly variable there, as on any IRC channel.) It is logged at http://irclog.perlgeek.de/perl6/today. There is usually someone

Re: [perl #63146] [TODO] Implement (*) in the LHS of 'my' declarations

2009-02-10 Thread Larry Wall
On Tue, Feb 10, 2009 at 12:14:35PM -0800, Carl Mäsak wrote: : # New Ticket Created by Carl Mäsak : # Please include the string: [perl #63146] : # in the subject line of all future correspondence about this issue. : # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63146 : : : TimToady my

Re: [perl #62382] [TODO] method form of postfix:i

2009-01-15 Thread Larry Wall
On Thu, Jan 15, 2009 at 09:58:12AM -0600, Patrick R. Michaud wrote: : On Wed, Jan 14, 2009 at 10:02:21PM -0800, Carl Mäsak via RT wrote: : On Wed Jan 14 22:00:33 2009, masak wrote: : TimToady rakudo: my $t = 5; say $t.i : p6eval rakudo 35576: OUTPUT«Method 'i' not found for invocant of :

Re: [perl #62028] say with no args should be an error

2009-01-07 Thread Larry Wall
On Tue, Jan 06, 2009 at 08:39:00PM -0600, Patrick R. Michaud wrote: : On Tue, Jan 06, 2009 at 01:50:06PM -0800, Dave Whipp wrote: : : S16 requires that say (and print) when called with no args should : be a compile-time error. Rakudo accepts it with no error. : : Since S16 has been in an

Re: [perl #61494] Strange parsing error involving two spaces

2008-12-19 Thread Larry Wall
On Fri, Dec 19, 2008 at 10:04:34AM +0100, mor...@casella.faui2k3.org wrote: : # New Ticket Created by Carl Mäsak : # Please include the string: [perl #61494] : # in the subject line of all future correspondence about this issue. : # URL: http://rt.perl.org/rt3/Ticket/Display.html?id=61494

Re: [perl #60828] [BUG] ^...@list returns ridicously long lists

2008-11-26 Thread Larry Wall
On Wed, Nov 26, 2008 at 08:54:50AM +0100, Moritz Lenz wrote: : : : Patrick R. Michaud wrote: : Currently Rakudo is treating [EMAIL PROTECTED] as though it's : prefix:^ on a List, which S03 says : : If [prefix:^ is] applied to a list, it generates a : multidimensional set of

Re: [perl #60674] sign($x) always returns 1 when $x ~~ Complex

2008-11-20 Thread Larry Wall
On Thu, Nov 20, 2008 at 04:31:22PM +0100, Carl Mäsak wrote: : Mark (): : I think the most sensible thing is to be consistent. sgn() fails for : non-real input as long as sqrt() returns NaN for negative input. : Change the latter behavior (via a pragma or whatever) so that sqrt() : returns

Re: [pugs-commits] r22496 - t/spec/S03-operators

2008-10-08 Thread Larry Wall
On Sun, Oct 05, 2008 at 08:03:43PM +0200, Moritz Lenz wrote: : Patrick R. Michaud wrote: : On Fri, Oct 03, 2008 at 10:02:56AM +0200, [EMAIL PROTECTED] wrote: : +#?rakudo skip ',=' : +#?DOES 2 : +{ : +my @a = 1, 2; : +is (@a ,= 3, 4).join('|'), '1|2|3|4', ',= on lists works the same

Re: [perl #57790] array indexing of integers parses(!), fails at runtime and exposes internals

2008-08-14 Thread Larry Wall
On Thu, Aug 14, 2008 at 02:32:29AM -0500, Patrick R. Michaud wrote: : AFAICT, according to the grammar it's valid standard Perl 6 syntax. At least in pugs, 42[0] is legal, and produces the value 42, on the theory that anything can be considered a list of 1 item, and if you use something as a

Re: [perl #57076] AutoReply: nothing while cond fails

2008-07-18 Thread Larry Wall
On Fri, Jul 18, 2008 at 05:53:17PM +0200, Carl Mäsak wrote: : Here's a 1-line patch that fixes nothing, pmichaud++. Note that nothing is now unspecced. :) Larry

Re: [perl #56638] Zero-argument return doesn't work

2008-07-07 Thread Larry Wall
On Mon, Jul 07, 2008 at 07:16:05PM -0700, Patrick R. Michaud via RT wrote: : Note however that TimToady on #perl6 speculated [1] that an empty return : should return the Object prototype. I'm not sure the answer was : resolved completely in that thread, however, so we'll go with returning :

Re: [perl #56638] Zero-argument return doesn't work

2008-07-07 Thread Larry Wall
On Mon, Jul 07, 2008 at 11:43:56PM -0500, Patrick R. Michaud wrote: : On Mon, Jul 07, 2008 at 08:18:36PM -0700, Larry Wall wrote: : On Mon, Jul 07, 2008 at 07:16:05PM -0700, Patrick R. Michaud via RT wrote: : : Note however that TimToady on #perl6 speculated [1] that an empty return : : should

Re: [perl #56638] Zero-argument return doesn't work

2008-07-07 Thread Larry Wall
On Mon, Jul 07, 2008 at 10:09:37PM -0700, Larry Wall wrote: : So : : $x = nothing(); # = [] : @x = nothing(); # = () : %x = nothing(); # = () : if nothing() {...}# always false : $x = nothing()[0] # Subscript out of range

Re: Rakudo test miscellanea

2008-06-26 Thread Larry Wall
On Thu, Jun 26, 2008 at 12:45:39PM -0400, Mark J. Reed wrote: : Moritz Lenz 3.14 would be a Rat or a Float or whatever : : That's a good question, actually. Does the literal 3.14 get turned : into a Float or a Rat? Float is probably simplest, and matches what : e.g. Lisp does, but you could

Re: Clarification on S12

2008-06-05 Thread Larry Wall
On Thu, Jun 05, 2008 at 11:04:52AM -0500, Patrick R. Michaud wrote: : This message is looking for a clarification/confirmation. : S12:207 says: : : To call an ordinary method with ordinary method-dispatch semantics, : use either the dot notation or indirect object notation: : :

Re: .kv, .keys, .values, on Array vs. List

2008-05-29 Thread Larry Wall
On the theory that a List is just a Capture that happens to contain only positionals, I'd say Lists should try to behave like Arrays when used as one. The only counterargument would be if it forces unnecessary mutation of otherwise immutable values, but that doesn't seem to be required for

Re: Syntax explainer, phase 2: planning

2008-01-30 Thread Larry Wall
On Wed, Jan 30, 2008 at 04:08:04PM +0100, Moritz Lenz wrote: : About half a year ago I posted my idea of a program that explains Perl 6 : syntax: : : http://www.nntp.perl.org/group/perl.perl6.users/2007/07/msg621.html : : Differing from my first post I know think that the best idea is to :

Re: Syntax explainer, phase 2: planning

2008-01-30 Thread Larry Wall
On Wed, Jan 30, 2008 at 07:47:18PM +0100, Moritz Lenz wrote: : particle++ told me to try --target=parse instead, and that's pretty much : verbose and all I should ever need ;-) Hmm, yes, but *only* if that switch merely augments information without destroying information, and doesn't otherwise

Re: Perl6 spec test suite

2008-01-16 Thread Larry Wall
On Wed, Jan 16, 2008 at 05:38:32AM -0600, Patrick R. Michaud wrote: : Nice. What about the cases where a test file defines its own local : wrapper functions to is, isnt, like, etc.? For example, Pugs' : t/builtins/math/sqrt.t has: : : sub is_approx (Num $is, Num $expected, Str $descr) { :

Re: Perl6 spec test suite

2008-01-16 Thread Larry Wall
On Wed, Jan 16, 2008 at 09:18:17AM -0800, Larry Wall wrote: : We could reserve all the is_* isnt_* ok_* names for that, I suppose. I've gone ahead and done that. Let me also reiterate here in public the basic underlying premise that fudge is only for fudging the tests, and a truly passing test

Re: Perl6 spec test suite

2008-01-15 Thread Larry Wall
On Sun, Jan 13, 2008 at 11:22:44PM -0600, Patrick R. Michaud wrote: : On Sun, Jan 13, 2008 at 11:35:17PM +0100, Cosimo Streppone wrote: : - Is [1] the correct way of declaring todo tests? :What's the equivalent in new compiler directives :of `:todofeature', `:todobug', and ':todo'? : [1]

Re: old link, pugs not on CPAN?

2007-09-03 Thread Larry Wall
On Mon, Sep 03, 2007 at 01:01:28PM +0200, Wolfgang Laun wrote: : The pugscode page http://www.pugscode.org/ contains the hint : : Periodic releases will appear on CPAN under the Perl6-Pugs : http://search.cpan.org/dist/Perl6-Pugs/ namespace. Well, hey, it doesn't specify the time period... :)

Re: pugs: aborting smoke tests

2007-04-11 Thread Larry Wall
Looks like some kind of resource exhaustion or lockup, possibly with the embedded/tunneled Perl 5, but it's hard to guess without more information like OS, locale, etc. most of which would be supplied by: pugs -V perl -V env If you provide that sort of info, we can compare with our

Re: pugs: rw block parameters

2006-08-24 Thread Larry Wall
On Wed, Aug 23, 2006 at 05:01:43PM -0400, Mark J. Reed wrote: : Sorry if this is a known question, but I didn't see it mentioned in the : recent archive or FAQ. : : for ($a, $b) { $_ = ... } : : gives me a Can't modify constant item: VRef Scalar. Which is correct as the default. : Making it

Re: Pugs bugs

2006-08-24 Thread Larry Wall
On Thu, Aug 24, 2006 at 02:29:04PM -0400, Mark J. Reed wrote: : Is there a repository of current known bugs with pugs, like there is : with Parrot? I'm just starting and don't want to point out things : that are already known. The pugs idea of reality is that a bug doesn't exist unless there's a

Re: pugs: rw block parameters

2006-08-24 Thread Larry Wall
On Thu, Aug 24, 2006 at 03:11:10PM -0400, Mark J. Reed wrote: : On 8/24/06, Larry Wall [EMAIL PROTECTED] wrote: : On Wed, Aug 23, 2006 at 05:01:43PM -0400, Mark J. Reed wrote: : : Sorry if this is a known question, but I didn't see it mentioned in the : : recent archive or FAQ. : : : : for ($a, $b

Re: designing a test suite for multiple implementations

2006-08-12 Thread Larry Wall
[Time to stop spamming multiple lists. Followups to p6c for bikeshedding.] On Sat, Aug 12, 2006 at 10:30:22AM +0300, Gaal Yahas wrote: : On Sat, Aug 12, 2006 at 02:06:27PM +0800, Agent Zhang wrote: : is $got, $expected, todo :pugs6.2.13, :p6p50.110; : : Happily, Audrey has already

Re: [unclassified] Re: resumable exceptions

2006-06-17 Thread Larry Wall
On Fri, Jun 16, 2006 at 10:51:24PM -0500, John M. Dlugosz wrote: : Anyway, as passionate as I was about resumption, or at least making it : not impossible to implement resumption, at the next ANSI meeting the : terminate-only camp made compelling arguments. Well, interestingly, I used to be in

Re: resumable exceptions

2006-06-15 Thread Larry Wall
On Wed, Jun 14, 2006 at 08:59:02PM -0700, Chip Salzenberg wrote: : Are Parrot exceptions now, in fact, resumable? If they are, is that : important? Is anyone actually resuming execution after exception handlers : are called? I think we _can_ keep resumability, but I'm not sure I want us : to,

Re: Infix macro := reparsing the LHS?

2006-04-19 Thread Larry Wall
On Wed, Apr 19, 2006 at 10:08:29PM +0800, Audrey Tang wrote: : Not sure if this is p6l or p6c... Fallback to the latter. :) : : In this line: : :[Dog ::T $ ($x) where 1, *$, [EMAIL PROTECTED] := moose(); : : the left hand side is probably not a valid Perl 6 expression, yet : according to

Re: Infix macro := reparsing the LHS?

2006-04-19 Thread Larry Wall
After some discussion on IRC, we have all declarators implying a signature syntax, either with parens for full sig or without for a limited one arg syntax: my Int $x = 1; my (Int $x where Odd, Dog $spot = fido()) := (1,$lassie); The sigil or the parens still control the context of the

Re: tokenizer hints, supporting delimited identifiers or symbols

2006-02-07 Thread Larry Wall
say $::You can already do that!; Larry

Re: tokenizer hints, supporting delimited identifiers or symbols

2006-02-07 Thread Larry Wall
On Tue, Feb 07, 2006 at 03:28:05PM -0800, Larry Wall wrote: : say $::You can already do that!; Or you can use a symbolic ref with a constant string: $::('x y'); The compiler knows it's a constant. And it's even implemented in Pugs. But my thinking on the :: form is that it derives from

Re: tokenizer hints, supporting delimited identifiers or symbols

2006-02-07 Thread Larry Wall
On Wed, Feb 08, 2006 at 12:26:52AM +, Luke Palmer wrote: : On 2/7/06, Larry Wall [EMAIL PROTECTED] wrote: : $MY::{'x y'} : $MY::x y # same thing : MY::$x y # same thing : : Er, aren't we obscuring the meaning of a little bit here? I would : think

Re: tokenizer hints, supporting delimited identifiers or symbols

2006-02-07 Thread Larry Wall
On Tue, Feb 07, 2006 at 03:54:07PM -0800, Larry Wall wrote: : On Tue, Feb 07, 2006 at 03:28:05PM -0800, Larry Wall wrote: : : say $::You can already do that!; : : Or you can use a symbolic ref with a constant string: : : $::('x y'); : : The compiler knows it's a constant. And it's even

Re: Macros?

2006-02-02 Thread Larry Wall
After a little more cleanup, S06 now reads: =head2 Macros Macros are functions or operators that are called by the compiler as soon as their arguments are parsed (if not sooner). The syntactic effect of a macro declaration or importation is always lexically scoped, even if

Re: embparrot still has two failures

2006-02-02 Thread Larry Wall
On Thu, Feb 02, 2006 at 10:58:39PM -0500, Uri Guttman wrote: : LW == Larry Wall [EMAIL PROTECTED] writes: : : LW pugs -V: : : LW This is Perl6 User's Golfing System, version 6.2.11, February 1, : LW 2005 (r8945) built for i386-linux-thread-multi : : : not that this has

pre0 non-smoke

2006-01-31 Thread Larry Wall
Here's results of r8894 on up-to-date Fedora Core 4 with embparrot r11392. Other the usual embparrot rules breakage, is looking pretty clean here even with bleadparrot. All the failures below look like rules coredumps to me, including the undef.t one. Larry Failed Test

  1   2   >