Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-13 Thread Rafael Garcia-Suarez
Yitzchak Scott-Thoennes wrote: I think I like the idea, and the patch seems safe. What I don't like, though, is the lack of tests for this patch. Also, a minor concern is that people might unknowingly write non-backwards-compatible code with 5.10 by using this construct. Some basic

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-12 Thread Yitzchak Scott-Thoennes
On Mon, Sep 05, 2005 at 08:10:20AM -0700, Yitzchak Scott-Thoennes wrote: On Mon, Sep 05, 2005 at 04:41:56PM +0200, Rafael Garcia-Suarez wrote: On 9/5/05, Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote: Any other feedback on making (LIST)[LIST]- not need the -? I think I

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-05 Thread Yitzchak Scott-Thoennes
On Thu, Sep 01, 2005 at 05:41:36PM -0700, Yitzchak Scott-Thoennes wrote: On Wed, Aug 31, 2005 at 06:07:11AM -0700, japhy @ perlmonk. org wrote: In 'perlref', item #3 of 'Using References' says One more thing here. The arrow is optional between brackets sub- scripts, so you can

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-05 Thread Rafael Garcia-Suarez
On 9/5/05, Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote: Any other feedback on making (LIST)[LIST]- not need the -? I think I like the idea, and the patch seems safe. What I don't like, though, is the lack of tests for this patch. Also, a minor concern is that people might unknowingly

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-05 Thread Yitzchak Scott-Thoennes
On Mon, Sep 05, 2005 at 04:41:56PM +0200, Rafael Garcia-Suarez wrote: On 9/5/05, Yitzchak Scott-Thoennes [EMAIL PROTECTED] wrote: Any other feedback on making (LIST)[LIST]- not need the -? I think I like the idea, and the patch seems safe. What I don't like, though, is the lack of

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-04 Thread Yitzchak Scott-Thoennes
On Thu, Sep 01, 2005 at 05:41:36PM -0700, Yitzchak Scott-Thoennes wrote: BTW, cygwin only has bison 1.875b, not the allowed 1.875 or 1.875c, but it seemed to work. I also note that Debian stable has 1.875d; would it make sense to just allow any 1.875* version? --- p/regen_perly.pl.orig

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-04 Thread Dave Mitchell
On Sun, Sep 04, 2005 at 02:38:14AM -0700, Yitzchak Scott-Thoennes wrote: On Thu, Sep 01, 2005 at 05:41:36PM -0700, Yitzchak Scott-Thoennes wrote: BTW, cygwin only has bison 1.875b, not the allowed 1.875 or 1.875c, but it seemed to work. I also note that Debian stable has 1.875d; would it

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-01 Thread Yitzchak Scott-Thoennes
On Wed, Aug 31, 2005 at 06:07:11AM -0700, japhy @ perlmonk. org wrote: In 'perlref', item #3 of 'Using References' says One more thing here. The arrow is optional between brackets sub- scripts, so you can shrink the above down to $array[$x]{foo}[0] = January; This led me to

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-01 Thread Rick Delaney
On Thu, Sep 01, 2005 at 05:41:36PM -0700, Yitzchak Scott-Thoennes wrote: On Wed, Aug 31, 2005 at 06:07:11AM -0700, japhy @ perlmonk. org wrote: sub foo { ...; return @data } my $x = (foo())[0][1]; which would have the same effect as my @return = foo(); my $x =

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-01 Thread Yitzchak Scott-Thoennes
On Thu, Sep 01, 2005 at 09:20:07PM -0400, Rick Delaney wrote: On Thu, Sep 01, 2005 at 05:41:36PM -0700, Yitzchak Scott-Thoennes wrote: On Wed, Aug 31, 2005 at 06:07:11AM -0700, japhy @ perlmonk. org wrote: sub foo { ...; return @data } my $x = (foo())[0][1]; which would

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-01 Thread Yitzchak Scott-Thoennes
On Thu, Sep 01, 2005 at 08:09:41PM -0700, Yitzchak Scott-Thoennes wrote: On Thu, Sep 01, 2005 at 09:20:07PM -0400, Rick Delaney wrote: On Thu, Sep 01, 2005 at 05:41:36PM -0700, Yitzchak Scott-Thoennes wrote: On Wed, Aug 31, 2005 at 06:07:11AM -0700, japhy @ perlmonk. org wrote: sub foo

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-01 Thread Rick Delaney
On Thu, Sep 01, 2005 at 08:09:41PM -0700, Yitzchak Scott-Thoennes wrote: On Thu, Sep 01, 2005 at 09:20:07PM -0400, Rick Delaney wrote: What is my $x = (foo())[0..5][1]; supposed to mean? I know it will return (foo())[5][1] but is it a good idea to support this syntax when it

Re: [perl #37039] perlref documentation about optional - is too vague

2005-09-01 Thread Rick Delaney
On Thu, Sep 01, 2005 at 08:20:17PM -0700, Yitzchak Scott-Thoennes wrote: A warning would be good, but I don't think it's necessary before applying my patch, and presumably it would also apply to @array[0..5]-[1]; I mean (foo())[0..5]-[1]; whereas @array[ (0..5)[-1]

[perl #37039] perlref documentation about optional - is too vague

2005-08-31 Thread via RT
# New Ticket Created by [EMAIL PROTECTED] # Please include the string: [perl #37039] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37039 This is a bug report for perl from [EMAIL PROTECTED], generated with the