Re: [perl #61308] rule's capture ws

2008-12-15 Thread Moritz Lenz
Moritz Lenz wrote: > Martin Kjeldsen (via RT) wrote: >> # New Ticket Created by Martin Kjeldsen >> # Please include the string: [perl #61308] >> # in the subject line of all future correspondence about this issue. >> # http://rt.perl.org/rt3/Ticket/Display.html?id=61308 > >> >> >> When using

Parrot Bug Summary

2008-12-15 Thread Parrot Bug Summary
Parrot Bug Summary http://rt.perl.org/rt3/NoAuth/parrot/Overview.html Generated at Mon Dec 15 14:00:01 2008 GMT --- * Numbers * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with m

Working with files wish list

2008-12-15 Thread Richard Hainsworth
Following the request for ideas on IO, this is my wish list for working with files. I am not a perl guru and so I do not claim to be able to write specifications. But I do know what I would like. The organisation of the IO as roles seems to be a great idea. I think that what is suggested here

Re: Release tomorrow

2008-12-15 Thread Kevin Tew
Will Coleda wrote: On Mon, Dec 15, 2008 at 11:05 AM, Kevin Tew wrote: Will Coleda wrote: 3) What's the status of ticket "-r33351 causes tcl segfault" (TT#10)? Is this still an issue? Is anybody actively working on it? Are we realistically going to get this issue resolved before tomorro

Re: [perl #61308] rule's capture ws

2008-12-15 Thread Martin Kjeldsen
Moritz Lenz via RT (09:23 2008-12-14): > Martin Kjeldsen (via RT) wrote: > > # New Ticket Created by Martin Kjeldsen > > # Please include the string: [perl #61308] > > # in the subject line of all future correspondence about this issue. > > # http://rt.perl.org/rt3/Ticket/Display.html?id=61308

[svn:parrot-pdd] r33921 - trunk/docs/pdds

2008-12-15 Thread infinoid
Author: infinoid Date: Mon Dec 15 08:49:46 2008 New Revision: 33921 Modified: trunk/docs/pdds/pdd23_exceptions.pod Log: [cage] t/codingstd/pdd_format.t fails on pdd23 with some line length errors, split the lines. Modified: trunk/docs/pdds/pdd23_exceptions.pod

[svn:parrot-pdd] r33912 - in trunk: docs/pdds src src/pmc

2008-12-15 Thread tene
Author: tene Date: Sun Dec 14 22:11:01 2008 New Revision: 33912 Modified: trunk/docs/pdds/pdd23_exceptions.pod Changes in other areas also in this revision: Modified: trunk/src/exceptions.c trunk/src/pmc/exception.pmc Log: [exceptions] * Nonfatal exceptions are automatically resumed, af

@INC

2008-12-15 Thread Илья
Hi! how I can say Rakudo search my modules in some place now? use lib 'here'; #parsed, but do not work @+INC.push('here'); # die with no scope for @INC Thank you! Ilya

Re: r24325 - docs/Perl6/Spec

2008-12-15 Thread David Green
On 2008-Dec-14, at 11:21 am, Moritz Lenz wrote: Uri Guttman wrote: how is sort ordering specified? Currently it is not specified, it defaults to infix:. If you can suggest a non-confusing way to specify both a transformation closure and a comparison method, please go ahead. how does it k

Re: Working with files wish list

2008-12-15 Thread jason switzer
On Mon, Dec 15, 2008 at 10:43 AM, Richard Hainsworth wrote: > a) I am fed up with writing something like > > open(FP, ">${fname}_out.txt") or die "Cant open ${fname}_out.txt for > writing\n"; > > The complex definition of the filename is only to show that it has to be > restated identically twice.

[perl #54448] unicode and macosx

2008-12-15 Thread Patrick R. Michaud via RT
Some transcoding options have been added to HLLCompiler and Rakudo since this ticket was last addressed... could we determine if this is still an issue for macosx? If not, I'd like to close the ticket. Thanks! Pm

Re: Working with files wish list

2008-12-15 Thread Leon Timmermans
On Mon, Dec 15, 2008 at 5:43 PM, Richard Hainsworth wrote: > Following the request for ideas on IO, this is my wish list for working with > files. I am not a perl guru and so I do not claim to be able to write > specifications. But I do know what I would like. > > The organisation of the IO as rol

Re: Working with files wish list

2008-12-15 Thread Uri Guttman
> "LT" == Leon Timmermans writes: >> e) When dealing with files in directories in perl5 under linux, I need >> >> opendir(DIR,'./path/') or die "cant open ./path/\n"; >> >> my @filelist = grep { /^.+\.txt/ } readdir(DIR); >> >> I would prefer something like >> >> my Loca

Re: r24325 - docs/Perl6/Spec

2008-12-15 Thread Larry Wall
>> infix: does numeric comparison if both operands are numbers, and >> string comparison otherwise. That is a bit of an oversimplification. > "Cmp" (like "eqv") depends on the particular type, so to sort a certain > way, you should need only to coerce the values to the right type: > > @st

[perl #58464] Match bug, $0 empty

2008-12-15 Thread Patrick R. Michaud via RT
As far as I can tell, this issue was fixed with lexicals (RT #58352), so I'm marking this ticket resolved. If the issue appears again, please reopen this ticket or open a new one. Thanks! Pm

[perl #58846] Calling a rule 'sp' doesn't work too well in Rakudo

2008-12-15 Thread Patrick R. Michaud via RT
This looks like a rule invocation bug to me -- if I change the code to use $str ~~ / / then it appears to work fine: $ cat x grammar A { token foo { ^ [||]+ $ }; token sp { ' ' | \n }; } say ?(" " ~~ //); say ?("\n" ~~ //); say ?("foo" ~~ //); say ?("foo bar" ~~ //); say ?("foo\nbar" ~

[perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-12-15 Thread Patrick R. Michaud via RT
Is t/spec/S29-conversions/ord_and_char.t still failing for anyone? If not, I'd like to close this ticket. Pm

[perl #61338] Grammar rules aren't inherited in Rakduo

2008-12-15 Thread Patrick R. Michaud via RT
If the rule is called correctly it appears to work fine: $ cat x grammar Foo { token foo { 'foo' } }; grammar Bar is Foo { token bar { | 'bar' } }; if 'foo' ~~ // { 'matched'.say; } $ ./parrot perl6.pbc x matched $ Closing ticket. Pm

Re: List.end - last item and last index mixing

2008-12-15 Thread Larry Wall
On Sun, Dec 14, 2008 at 09:33:20PM +0100, Moritz Lenz wrote: : Moritz Lenz wrote: : > From S29: : > : > : =item end : > : : > : our Any method end (@array: ) is export : > : : > : Returns the final subscript of the first dimension; for a one-dimensional : > : array this simply the index of the fi

[perl #61308] rule's capture ws

2008-12-15 Thread Patrick R. Michaud via RT
On Mon Dec 15 03:43:26 2008, baest wrote: > Moritz Lenz via RT (09:23 2008-12-14): > > Martin Kjeldsen (via RT) wrote: > > > # New Ticket Created by Martin Kjeldsen > > > # Please include the string: [perl #61308] > > > # in the subject line of all future correspondence about this > issue. > > >

Re: What does a Pair numify to?

2008-12-15 Thread Larry Wall
On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote: > HaloO, > > Carl Mäsak wrote: >> Pugs and Elf currently numify a Pair object to 2, and Rakudo currently >> dies of despair. >> >> My guess is that the semantics of Pugs and Elf falls out naturally >> form a pair being treated as a list of two el

[perl #61308] rule's capture ws

2008-12-15 Thread Patrick R. Michaud via RT
On Fri Dec 12 04:52:12 2008, baest wrote: > When using rules at least with overwritten, the rule also captures > whitespace. Please see attached file for example. The problem is with trying to invoke the rule using "$str ~~ NG::TOP" -- that's not a valid syntax for invoking a rule in a grammar.

[perl #57018] Empty -e argument sends rakudo into REPL mode

2008-12-15 Thread Patrick R. Michaud via RT
Now fixed in r33936, thanks! Pm

Re: What does a Pair numify to?

2008-12-15 Thread mark . a . biggar
-- Original message -- From: Larry Wall > On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote: > > My idea is to let a pair numify to whatever the value numifies to. > > Same thing with stringification. In general I think that a pair should > > hide its key as far a

Re: r24325 - docs/Perl6/Spec

2008-12-15 Thread Uri Guttman
> "LW" == Larry Wall writes: >>> infix: does numeric comparison if both operands are numbers, and >>> string comparison otherwise. LW> That is a bit of an oversimplification. LW> Any type may define infix: however it likes for two arguments of LW> its own type. It may also defin

Re: What does a Pair numify to?

2008-12-15 Thread Uri Guttman
> "mab" == mark a biggar writes: mab> -- Original message -- mab> From: Larry Wall >> On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote: >> > My idea is to let a pair numify to whatever the value numifies to. >> > Same thing with stringification. I

Re: What does a Pair numify to?

2008-12-15 Thread Jon Lang
Mark Biggar wrote: > The only use case I can think of is sorting a list of pairs; > should it default to sort by key or value? But this isn't a case of numifying a Pair, or of stringifying it - or of coercing it at all. If you've got a list of Pairs, you use a sorting algorithm that's designed f

Re: What does a Pair numify to?

2008-12-15 Thread David Green
On 2008-Dec-15, at 4:18 pm, Jon Lang wrote: If you've got a list of Pairs, you use a sorting algorithm that's designed for sorting Pairs (which probably sorts by key first, then uses the values to break ties). Agreed. If you've got a list that has a mixture of Pairs and non-Pairs, I think

Resume from exception

2008-12-15 Thread Stephen Weeks
do { die 'some text'; say 'after the exception'; CATCH { say 'caught the exception'; ...; # what goes here? } } My proposal is to call .resume() on the exception object. Thoughts?

Re: Working with files wish list

2008-12-15 Thread Dave Whipp
Leon Timmermans wrote: On Mon, Dec 15, 2008 at 5:43 PM, Richard Hainsworth wrote: a) I am fed up with writing something like open(FP, ">${fname}_out.txt") or die "Cant open ${fname}_out.txt for writing\n"; The complex definition of the filename is only to show that it has to be restated ident

Re: What does a Pair numify to?

2008-12-15 Thread Moritz Lenz
Larry Wall wrote: > On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote: >> HaloO, >> >> Carl Mäsak wrote: >>> Pugs and Elf currently numify a Pair object to 2, and Rakudo currently >>> dies of despair. >>> >>> My guess is that the semantics of Pugs and Elf falls out naturally >>> form a pair being

Re: Working with files wish list

2008-12-15 Thread Leon Timmermans
On Mon, Dec 15, 2008 at 6:42 PM, jason switzer wrote: > It's lazy and kinda cheating, but for small simple tasks, it gets the job > done. I'm not up to speed with the IO spec, but a sort of auto-slurp > functionality would be nice. Something to the effect: > > @data = :slurp("mydatafile.txt"); A

Re: [perl #60510] Bad plan: t/spec/S29-conversions/ord_and_chr.rakudo

2008-12-15 Thread Moritz Lenz
Patrick R. Michaud via RT wrote: > Is t/spec/S29-conversions/ord_and_char.t still failing for anyone? If > not, I'd like to close this ticket. It's fine here. Cheers, Moritz

Re: Resume from exception

2008-12-15 Thread Leon Timmermans
On Mon, Dec 15, 2008 at 8:47 PM, Stephen Weeks wrote: > do { >die 'some text'; >say 'after the exception'; >CATCH { >say 'caught the exception'; >...; # what goes here? >} > } > > My proposal is to call .resume() on the exception object. > > Thoughts? > The spec sa

Resume from exception

2008-12-15 Thread Stephen Weeks
do { die 'some text'; say 'after the exception'; CATCH { say 'caught the exception'; ...; # what goes here? } } My proposal is to call .resume() on the exception object. Thoughts?

Re: What does a Pair numify to?

2008-12-15 Thread Moritz Lenz
mark.a.big...@comcast.net wrote: > -- Original message -- > From: Larry Wall >> On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote: >> > My idea is to let a pair numify to whatever the value numifies to. >> > Same thing with stringification. In general I think that

Re: r24325 - docs/Perl6/Spec

2008-12-15 Thread Moritz Lenz
Uri Guttman wrote: >> "LW" == Larry Wall writes: > > >>> infix: does numeric comparison if both operands are numbers, and > >>> string comparison otherwise. > > LW> That is a bit of an oversimplification. > > LW> Any type may define infix: however it likes for two arguments of >

Re: r24325 - docs/Perl6/Spec

2008-12-15 Thread Mark J. Reed
On Mon, Dec 15, 2008 at 5:41 PM, Moritz Lenz wrote: > I know at least of infix:(Num $a, Num $b) (which does the same as > Perl 5's <=>) and infix:(Pair $a, Pair $b) (which does $a.key cmp > $a.key || $a.value cmp $b.value), so numbers and pairs DWIM. Hm. Rakudo doesn't let me cmp pairs at all

[perl #60820] Infinite pretzel recursion in Rakudo when filling a variable with an array in which one of the elements is the old value of that variable

2008-12-15 Thread Patrick R. Michaud via RT
On Tue Nov 25 18:21:04 2008, pmichaud wrote: > On Tue, Nov 25, 2008 at 12:36:45PM -0800, Carl Mäsak wrote: > > rakudo: my $a = 5; $a = [ $a, 6 ]; say $a > > rakudo 33193: OUTPUT[maximum recursion depth > > Rakudo doesn't quite know how to interpolate values into lists yet, > or how to convert a

Re: Working with files wish list

2008-12-15 Thread jason switzer
On Mon, Dec 15, 2008 at 6:59 PM, Leon Timmermans wrote: > On Mon, Dec 15, 2008 at 6:42 PM, jason switzer wrote: > > It's lazy and kinda cheating, but for small simple tasks, it gets the job > > done. I'm not up to speed with the IO spec, but a sort of auto-slurp > > functionality would be nice.