Re: Perl 6 index

2002-09-21 Thread William R Ward
I don't like changing the semantics without changing the syntax. There's too much of that in perl6 already. But shouldn't index() be a method of the string object anyway? --Bill. [EMAIL PROTECTED] (Aaron Sherman) writes: > Something that has long bothered me in C and Perl is the return from >

Re: possible bugs in Exegesis 5 code for matching patterns

2002-09-21 Thread Smylers
Steve Tolkin wrote: > { @$appendline =~ s// > I think this needs a backslash in front of the < symbol, and a space > after in_marker, i.e. it should be: > > { @$appendline =~ s//\

Re: Passing arguments

2002-09-21 Thread Smylers
Larry Wall wrote: > On 20 Sep 2002, Aaron Sherman wrote: > > : Does that mean that I can't > : > : for $x -> $_ { > : for $y -> $z { > : print "$_, $z\n"; > : } > : } > : > : And expect to get different values? > > That's correct. N

Re: Regex query

2002-09-21 Thread Smylers
Luke Palmer wrote: > my @v = $( &func() ); > > Would provide scalar context. But then assign it to a list... In the course of reading that I developed a concern about memory usage when trying to find the size of arrays. As I understand it the Perl 5 syntax for discovering the number of

Perl 6 JAPH ...

2002-09-21 Thread Thomas Klausner
Hi! During YAPC::Europe and all the great Perl 6 talks there, I started thinking about doing a Perl 6 JAPH / Obfuscation. So I downloaded parrot (twice, once from CPAN, which is broken, and then from CVS, which worked..), installed it and came up with this rather simple JAPH: @p =('j','a','e','

Re: Regex query

2002-09-21 Thread Smylers
Tanton Gibbs wrote: > (7) == 7 > > why? Otherwise, we couldn't use parens for mathematical expressions But as Luke Palmer pointed about above, this syntax would make square brackets redundant, so we could now use those unambiguously for overriding mathematical precedence ... (Sorry about t

[perl #17468] [PATCH] interpreter.c prederef

2002-09-21 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #17468] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17468 > This patch - removes check_fingerprint (this should be done in PBC unpack) - simplif

[perl #17469] [PATCH] jit2h.pl (missing in #17455)

2002-09-21 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #17469] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17469 > This patch is additionally needed for #17455. Due to missing dependencies on build

[perl #17470] [PATCH] interpreter restart test

2002-09-21 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #17470] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17470 > This patch adds a test case for restarting the interpreter. To get this running, pa

fingerprinting PBC files

2002-09-21 Thread Leopold Toetsch
As PBC files might be built from different core.ops aka core_ops.c, it is necessary to add a fingerprint to PBC files, to validate, that the interpreter uses the very same ops, when running the PBC. - during "make" a fingerprint of core_ops.c is generated: $ perl -pe's/\s//g' < core_ops.c | md5

Re: Regex query

2002-09-21 Thread Jonathan Scott Duff
On Fri, Sep 20, 2002 at 09:46:58PM -0600, John Williams wrote: > On Fri, 20 Sep 2002, Jonathan Scott Duff wrote: > > > But I cannot tell whether (7) is list context or numeric context, > > > > Nope, you can't tell without the surrounding context: > > > > (7) + 0;# numeric > > $a =

Re: fingerprinting PBC files

2002-09-21 Thread Sean O'Rourke
On Sat, 21 Sep 2002, Leopold Toetsch wrote: > As PBC files might be built from different core.ops aka core_ops.c, it > is necessary to add a fingerprint to PBC files, to validate, that the > interpreter uses the very same ops, when running the PBC. > > - during "make" a fingerprint of core_ops.c

Re: Regex query

2002-09-21 Thread John Williams
On Sat, 21 Sep 2002, Jonathan Scott Duff wrote: > > I can't tell whether (7).length is asking for the length > > of 7 or the length of a list, but I would be badly surprised if > > (3+4).pow(2) returned 1 instead of 49. > > So, you expect 7.pow(2) to work? I'd expect it to be an error (this > isn

Re: Regex query

2002-09-21 Thread John Williams
On 21 Sep 2002, Smylers wrote: > > Does that matter? This example is fairly contrived, and anybody > actually concerned about this can always use: > > $num = @massive.length; > > So perhaps this isn't a problem. $num = +@massive; would also set $num to the length, not the ref. ~ John Willi

Re: Passing arguments

2002-09-21 Thread Paul Johnson
On Sat, Sep 21, 2002 at 10:05:50AM -, Smylers wrote: > Larry Wall wrote: > > > On 20 Sep 2002, Aaron Sherman wrote: > > > > : Does that mean that I can't > > : > > : for $x -> $_ { > > : for $y -> $z { > > : print "$_, $z\n"; > > : } > > :

Re: Regex query

2002-09-21 Thread Jonathan Scott Duff
On Sat, Sep 21, 2002 at 11:36:49AM -0600, John Williams wrote: > On Sat, 21 Sep 2002, Jonathan Scott Duff wrote: > > > I can't tell whether (7).length is asking for the length > > > of 7 or the length of a list, but I would be badly surprised if > > > (3+4).pow(2) returned 1 instead of 49. > > > >

Re: fingerprinting PBC files

2002-09-21 Thread Leopold Toetsch
Sean O'Rourke wrote: > On Sat, 21 Sep 2002, Leopold Toetsch wrote: > > >>As PBC files might be built from different core.ops aka core_ops.c, it >>is necessary to add a fingerprint to PBC files, to validate, that the >>interpreter uses the very same ops, when running the PBC. >> >>- during "make

Re: hotplug regexes, other misc regex questions

2002-09-21 Thread Steve Fink
On Mon, Sep 16, 2002 at 10:32:17AM +0300, Markus Laire wrote: > On 15 Sep 2002 at 22:41, Steve Fink wrote: > > Your code seems to backtrack to the beginning at every failure. First > code only backtracks one char at time. > > Huh? What implementation is that? I think my naive implementation > >

Re: Passing arguments

2002-09-21 Thread Luke Palmer
On 21 Sep 2002, Smylers wrote: > Larry Wall wrote: > > > On 20 Sep 2002, Aaron Sherman wrote: > > > > : Does that mean that I can't > > : > > : for $x -> $_ { > > : for $y -> $z { > > : print "$_, $z\n"; > > : } > > : } > > : > > : And exp

Re: Regex query

2002-09-21 Thread Luke Palmer
On 21 Sep 2002, Smylers wrote: > Luke Palmer wrote: > > > my @v = $( &func() ); > > > > Would provide scalar context. But then assign it to a list... > > In the course of reading that I developed a concern about memory usage > when trying to find the size of arrays. As I understand it th

Re: hotplug regexes, other misc regex questions

2002-09-21 Thread Steve Fink
On Wed, Sep 18, 2002 at 05:01:35PM +0200, Damian Conway wrote: > Steve Fink wrote: > > >What possible outputs are legal for this: > > > > "aaa" =~ /( a { print 1 } | a { print 2 })* { print "\n" } x/ > > Unless Larry specifies a required semantics, there are potentially very > many acceptable o

Re: Regex query

2002-09-21 Thread Markus Laire
> On Sat, Sep 21, 2002 at 11:36:49AM -0600, John Williams wrote: > > On Sat, 21 Sep 2002, Jonathan Scott Duff wrote: > > > > Anyway, (7) or (3+4) should yield a number, not a list, because > > otherwise every math expression will break. > > Why can't perl be smart enough to figure out what we me

Re: Regex query

2002-09-21 Thread Luke Palmer
On Sun, 22 Sep 2002, Markus Laire wrote: > > On Sat, Sep 21, 2002 at 11:36:49AM -0600, John Williams wrote: > > > On Sat, 21 Sep 2002, Jonathan Scott Duff wrote: > > > > > > Anyway, (7) or (3+4) should yield a number, not a list, because > > > otherwise every math expression will break. > > > >

Re: Regex query

2002-09-21 Thread matt diephouse
Luke Palmer wrote: >On Sun, 22 Sep 2002, Markus Laire wrote: >You know, the idea that square brackets are the only things that can make >lists is starting to really appeal to me. Similar for squiggles and > >So parens really do provide grouping, not list constructing. Thus, this >can stay:

Re: Tinderbox "TD-ParkAvenue" not working

2002-09-21 Thread Jeff
Jeff wrote: > > Mike Lambert wrote: > > > > > First, a thank you to whoever it is who is running these test-drive > > > machines (there's no name in the build log). Also, a thanks to Compaq > > > for setting them up. > > Yes, many thanks to Compaq. > > > Yes, I had noticed that. And that struc