[PATCH] intconst parameter type

2002-04-17 Thread Andrew J Bromage
G'day all. This patch introduces a new op parameter type "inconst", which is like "in" except that it only produces const versions of the op (i.e. it will not take values from registers). This is mostly for the benefit of branch targets. The "feature" of using register values as branch targets

RE: // in Perl 5.8?

2002-04-17 Thread Brent Dax
Randal L. Schwartz: # > "David" == David Wheeler <[EMAIL PROTECTED]> writes: # David> Anyone know what the chances are that some # enterprising C hacker # David> can/will/did get the // and //= operator into Perl 5.8? Seems # David> like it wouldn't be a huge deal to add, and I'd love # to

Re: // in Perl 5.8?

2002-04-17 Thread Randal L. Schwartz
> "David" == David Wheeler <[EMAIL PROTECTED]> writes: David> Anyone know what the chances are that some enterprising C hacker David> can/will/did get the // and //= operator into Perl 5.8? Seems like it David> wouldn't be a huge deal to add, and I'd love to have it sooner rather than David>

Re: parrot-0.0.5 doesn't like me. Which isn't fair,really,because I rather like it.

2002-04-17 Thread Jeff
Mike Lambert wrote: > > > Okay, that's bizarre. I'm going to try and track this down and see > > what I can do about that. > > Before you get too far deep in it, I think David identified the problem in > a later email. Basically, he has gcc 2.95 for Mac OS X. Unfortunatel,y, it > doesn't seem to

Re: // in Perl 5.8?

2002-04-17 Thread Rafael Garcia-Suarez
Brent Dax wrote in perl.perl6.language : > I believe that the tokenizer remembers whether it's expecting a binary > operator or Something Else. That's how it handles things like > vs. numeric less-than (<). Indeed : that's why print $FH1 <$FH2>; produces a syntax error. -- If strain on the

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread Simon Cozens
Mike Lambert: > check if they correctly support cgoto, and disable it if they don't. Given > his Configure.pl output, his compiler is failing to compile > testcomputedgoto.c, but yet it is still choosing to use the CGoto core > when compiling Parrot. This doesn't explain my test failures, though.

RE: // in Perl 5.8?

2002-04-17 Thread Brent Dax
David Wheeler: # On 4/17/02 2:17 PM, "Graham Barr" <[EMAIL PROTECTED]> claimed: # # > The problem with // is that it already has a meaning and although # > perl6 will redefine it can we do so in perl5 ? I don't think we can. # # Oh yeah, you're right. Perl 5 would have to require that it # be

Re: Roadmap for Parrot

2002-04-17 Thread Dave Mitchell
On Wed, Apr 17, 2002 at 05:43:01PM -0400, Dan Sugalski wrote: > At 10:16 PM +0100 4/17/02, Dave Mitchell wrote: > >On Wed, Apr 17, 2002 at 04:57:21PM -0400, Dan Sugalski wrote: > >> At 9:48 PM +0100 4/17/02, Dave Mitchell wrote: > >> >On Wed, Apr 17, 2002 at 04:34:12PM -0400, Simon Glover wrote:

Re: Roadmap for Parrot

2002-04-17 Thread Dan Sugalski
At 10:16 PM +0100 4/17/02, Dave Mitchell wrote: >On Wed, Apr 17, 2002 at 04:57:21PM -0400, Dan Sugalski wrote: >> At 9:48 PM +0100 4/17/02, Dave Mitchell wrote: >> >On Wed, Apr 17, 2002 at 04:34:12PM -0400, Simon Glover wrote: >> >> I thought lexicals were going to live in a symbol table now?

Re: // in Perl 5.8?

2002-04-17 Thread David Wheeler
On 4/17/02 2:17 PM, "Graham Barr" <[EMAIL PROTECTED]> claimed: > The problem with // is that it already has a meaning and although perl6 will > redefine it > can we do so in perl5 ? I don't think we can. Oh yeah, you're right. Perl 5 would have to require that it be m//, and that would break a l

Re: // in Perl 5.8?

2002-04-17 Thread Graham Barr
On Wed, Apr 17, 2002 at 01:09:43PM -0700, David Wheeler wrote: > Anyone know what the chances are that some enterprising C hacker > can/will/did get the // and //= operator into Perl 5.8? Seems like it > wouldn't be a huge deal to add, and I'd love to have it sooner rather than > later. It is not

Re: Roadmap for Parrot

2002-04-17 Thread Dave Mitchell
On Wed, Apr 17, 2002 at 04:57:21PM -0400, Dan Sugalski wrote: > At 9:48 PM +0100 4/17/02, Dave Mitchell wrote: > >On Wed, Apr 17, 2002 at 04:34:12PM -0400, Simon Glover wrote: > >> I thought lexicals were going to live in a symbol table now? In which > >> case, they're definitely going to depe

Re: // in Perl 5.8?

2002-04-17 Thread Dave Mitchell
On Wed, Apr 17, 2002 at 01:58:05PM -0700, David Wheeler wrote: > On 4/17/02 1:51 PM, "Dave Mitchell" <[EMAIL PROTECTED]> claimed: > > > I hope you're referring to 5.8.x for some x != 0 ??? :-) > > Do you know how late in the development process the $coderef->() feature was > added to Perl (in

Re: [PATCH] Strings tests [APPLIED]

2002-04-17 Thread Dan Sugalski
At 4:47 PM -0400 4/17/02, Simon Glover wrote: > - Tests for the 5-argument form of substr Applied, thanks. -- Dan --"it's like this"--- Dan Sugalski even samurai [EMAIL PROTECT

Re: [PATCH] Stacks tests [APPLIED]

2002-04-17 Thread Dan Sugalski
At 4:47 PM -0400 4/17/02, Simon Glover wrote: > - Tests for rotate-up and savec Odd--my stacks.t only has 18 tests in it, not 20. Still, applied. -- Dan --"it's like this"--- Dan Sugalski

Re: Roadmap for Parrot

2002-04-17 Thread Simon Glover
On Wed, 17 Apr 2002, Dave Mitchell wrote: > On Wed, Apr 17, 2002 at 04:34:12PM -0400, Simon Glover wrote: > > > > On Wed, 17 Apr 2002, Brent Dax wrote: > > > > > Dan Sugalski: > > > # Okay, here are the milestones. Each is worth a point release. If we > > > # manage to take them in this order, g

Re: [DOC PATCH] Core.ops documentation fixes

2002-04-17 Thread Dan Sugalski
At 4:47 PM -0400 4/17/02, Simon Glover wrote: > > - Adds documentation for the two-arg. form of print > - Rewritten description for rotate_up that's hopefully clearer Applied, thanks. -- Dan --"it's like this"---

Re: // in Perl 5.8?

2002-04-17 Thread David Wheeler
On 4/17/02 1:51 PM, "Dave Mitchell" <[EMAIL PROTECTED]> claimed: > I hope you're referring to 5.8.x for some x != 0 ??? :-) Do you know how late in the development process the $coderef->() feature was added to Perl (in whatever release that was)? Ask Randal to talk about it sometime. ;-) But

Re: Roadmap for Parrot

2002-04-17 Thread Dan Sugalski
At 9:48 PM +0100 4/17/02, Dave Mitchell wrote: >On Wed, Apr 17, 2002 at 04:34:12PM -0400, Simon Glover wrote: >> >> On Wed, 17 Apr 2002, Brent Dax wrote: >> >> > Dan Sugalski: >> > # Okay, here are the milestones. Each is worth a point release. If we >> > # manage to take them in this order, g

Re: Roadmap for Parrot

2002-04-17 Thread Dan Sugalski
At 4:37 PM -0400 4/17/02, Michael G Schwern wrote: >On Wed, Apr 17, 2002 at 03:27:51PM -0400, Dan Sugalski wrote: >> Okay, here are the milestones. Each is worth a point release. If we > > manage to take them in this order, great. :) > >I don't see "World Domination" or "Nervous Breakdown" in th

Re: // in Perl 5.8?

2002-04-17 Thread Dave Mitchell
On Wed, Apr 17, 2002 at 01:09:43PM -0700, David Wheeler wrote: > Anyone know what the chances are that some enterprising C hacker > can/will/did get the // and //= operator into Perl 5.8? Seems like it > wouldn't be a huge deal to add, and I'd love to have it sooner rather than > later. I hope yo

Re: Roadmap for Parrot

2002-04-17 Thread Dave Mitchell
On Wed, Apr 17, 2002 at 04:34:12PM -0400, Simon Glover wrote: > > On Wed, 17 Apr 2002, Brent Dax wrote: > > > Dan Sugalski: > > # Okay, here are the milestones. Each is worth a point release. If we > > # manage to take them in this order, great. :) > > > > Rough dependency tree: > > > > Arrays >

[PATCH] PerlString fixes (and tests)

2002-04-17 Thread Simon Glover
The enclosed patch makes a number of changes to perlstring.pmc, to bring it in line with my understanding of how PMCs are supposed to work. Specifically, unless we _know_ the type of the source and destination PMCs, we should always access them through their get_... and set_... methods. In

[PATCH] Strings tests

2002-04-17 Thread Simon Glover
- Tests for the 5-argument form of substr Simon --- string.t.oldSat Apr 6 19:56:32 2002 +++ string.tSat Apr 6 20:38:59 2002 @@ -1,6 +1,6 @@ #! perl -w -use Parrot::Test tests => 64; +use Parrot::Test tests => 76; output_is( <<'CODE', < length" ); + set S0, "abcdefghijk" +

[PATCH] Stacks tests

2002-04-17 Thread Simon Glover
- Tests for rotate-up and savec Simon --- stacks.t.oldSat Apr 6 13:47:09 2002 +++ stacks.tSat Apr 6 14:58:01 2002 @@ -1,6 +1,6 @@ #! perl -w -use Parrot::Test tests => 20; +use Parrot::Test tests => 28; use Test::More; # Tests for stack operations, currently push*, push_*_c

[DOC PATCH] Core.ops documentation fixes

2002-04-17 Thread Simon Glover
- Adds documentation for the two-arg. form of print - Rewritten description for rotate_up that's hopefully clearer Simon --- core.ops.oldWed Apr 17 16:27:49 2002 +++ core.opsWed Apr 17 16:27:55 2002 @@ -229,8 +229,13 @@ =item B(in INT, in NUM) +=item B(in INT, in STR) + =item

Patches, patches, patches...

2002-04-17 Thread Simon Glover
OK, this is advance warning that I'm about to be reposting a bunch of patches of mine which appear to have succumbed to Warnock's Dilemma. The first three should be uncontroversial: there's a documentation fix-up for core.ops, and new tests for strings and stacks. The last one is rather lar

Re: named params, @_, and pass-by-reference

2002-04-17 Thread Dave Storrs
[Several people said something like "$var is rw will do it") Ah, that's right. I had forgotten about this. Thanks to everyone who responded. Dave

Re: Roadmap for Parrot

2002-04-17 Thread Michael G Schwern
On Wed, Apr 17, 2002 at 03:27:51PM -0400, Dan Sugalski wrote: > Okay, here are the milestones. Each is worth a point release. If we > manage to take them in this order, great. :) > > *) Working arrays > > *) Working hashes > > *) Regular expressions > > *) Symbol tables > > *) Method calls >

Re: C loop variations

2002-04-17 Thread David Wheeler
On 4/17/02 1:20 PM, "Aaron Sherman" <[EMAIL PROTECTED]> claimed: > This gets ugly when you mix in traditional C for (are we keeping that in > Perl6?): Yes, but it's name is changing to C. David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED]

RE: Roadmap for Parrot

2002-04-17 Thread Simon Glover
On Wed, 17 Apr 2002, Brent Dax wrote: > Dan Sugalski: > # Okay, here are the milestones. Each is worth a point release. If we > # manage to take them in this order, great. :) > > Rough dependency tree: > > Arrays > Regular expressions (backreference storage) > Parser (probabl

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread Mike Lambert
> Okay, that's bizarre. I'm going to try and track this down and see > what I can do about that. Before you get too far deep in it, I think David identified the problem in a later email. Basically, he has gcc 2.95 for Mac OS X. Unfortunatel,y, it doesn't seem to support computed goto. The Configu

Re: transcode addition

2002-04-17 Thread Tom Hughes
In message <[EMAIL PROTECTED]> Roman Hunt <[EMAIL PROTECTED]> wrote: > I'm not too sure if this is necessary but it seems logical to get things > into charsets our compilers can handle. Hopefully this is the correct > approach . . . . also this should NULL terminate in the event that

RE: Roadmap for Parrot

2002-04-17 Thread Brent Dax
Dan Sugalski: # Okay, here are the milestones. Each is worth a point release. If we # manage to take them in this order, great. :) Rough dependency tree: Arrays Regular expressions (backreference storage) Parser (probably) Lexicals (probably, though could be a ha

Re: C loop variations

2002-04-17 Thread Aaron Sherman
On Wed, 2002-04-17 at 11:23, Jonathan Scott Duff wrote: > On Wed, Apr 17, 2002 at 01:38:59PM +0100, Piers Cawley wrote: > > I've got the horrible feeling that doing it this way will lead to > > nasty ambiguities in parsing, but if that's not the case then I must > > confess that I prefer this synt

// in Perl 5.8?

2002-04-17 Thread David Wheeler
Anyone know what the chances are that some enterprising C hacker can/will/did get the // and //= operator into Perl 5.8? Seems like it wouldn't be a huge deal to add, and I'd love to have it sooner rather than later. Regards, David -- David Wheeler AIM: dwTh

Re: named params, @_, and pass-by-reference

2002-04-17 Thread Trey Harris
In a message dated Wed, 17 Apr 2002, Dave Storrs writes: > sub load_data ( \$filename; $version; @_ ) { I think you can do exactly this with sub load_data ( $filename is rw, $version, @_ ) { Yes? Or maybe sub load_data ( $filename is rw, $version, *@_) { to make sure @_ g

Roadmap for Parrot

2002-04-17 Thread Dan Sugalski
Okay, here are the milestones. Each is worth a point release. If we manage to take them in this order, great. :) *) Working arrays *) Working hashes *) Regular expressions *) Symbol tables *) Method calls *) Lexicals *) Subroutines *) Attributes *) Per-object specials (variables & subs)

Re: transcode addition

2002-04-17 Thread Simon Glover
On Wed, 17 Apr 2002, Roman Hunt wrote: > On Wed, 17 Apr 2002, Simon Glover wrote: > > # >+cstring[s->buflen + 1] = 0; > good grief > > # > > # > # This is a buffer overflow; I'm not quite sure what you're trying to do, > # but this certainly doesn't do it. > > shouldnt cstring[s->bufused +

Re: transcode addition

2002-04-17 Thread Roman Hunt
On Wed, 17 Apr 2002, Simon Glover wrote: # >+cstring[s->buflen + 1] = 0; good grief # > # # This is a buffer overflow; I'm not quite sure what you're trying to do, # but this certainly doesn't do it. shouldnt cstring[s->bufused +1] = \0 to keep us from clobbering the last char? or will st

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread David Hand
On Wed, Apr 17, 2002 at 02:40:16PM -0400, Dan Sugalski wrote: > At 2:10 PM -0400 4/17/02, David Hand wrote: > >Trying CVS parrot as of 1400 EDT (why not?), it still didn't work. > >Interestingly, typing "long" both times that Configure suggests "long > >long" doesn't work, either. (I get what app

Re: transcode addition

2002-04-17 Thread Roman Hunt
On Wed, 17 Apr 2002, Simon Glover wrote: # This is a buffer overflow; I'm not quite sure what you're trying to do, # but this certainly doesn't do it. I see now, I dont know what the hell I was thinking on that part, the logic was correct to begin with. what about the transcoding though wouldn

Re: transcode addition

2002-04-17 Thread Simon Glover
On Wed, 17 Apr 2002, Roman Hunt wrote: > Ehlo: > I'm not too sure if this is necessary but it seems logical to get things > into charsets our compilers can handle. Hopefully this is the correct > approach . . . . also this should NULL terminate in the event that the > entire buffer had not ye

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really,because I rather like it.

2002-04-17 Thread Dan Sugalski
At 2:10 PM -0400 4/17/02, David Hand wrote: >On Wed, Apr 17, 2002 at 01:40:39PM -0400, Andy Dougherty wrote: >> On Wed, 17 Apr 2002, Andy Dougherty wrote: >> > If I had to guess, I'd guess this was the problem. This is probably not >> > as heavily-tested a Configuration as the plain 'long' ver

transcode addition

2002-04-17 Thread Roman Hunt
Ehlo: I'm not too sure if this is necessary but it seems logical to get things into charsets our compilers can handle. Hopefully this is the correct approach . . . . also this should NULL terminate in the event that the entire buffer had not yet been filled. Roman Index: string.c

Re: named params, @_, and pass-by-reference

2002-04-17 Thread Jonathan Scott Duff
On Wed, Apr 17, 2002 at 11:15:15AM -0700, Dave Storrs wrote: > Perhaps using \ in the signature to indicate p-b-r is not the > best...it could confuse people into thinking that they will need to > manually dereference the variable, which they shouldn't need to do. > > Is there a way t

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread David Hand
Okay, on a whim, I tried `perl Configure.pl` again in both my parrot-0.0.4 and parrot-0.0.5 directories, accepting all defaults. The difference appears to be in the checking for computed goto. Of course, Configure.pl *does* warn me that I may see some errors. I have no idea why any of this woul

named params, @_, and pass-by-reference

2002-04-17 Thread Dave Storrs
On Thu, 11 Apr 2002, Damian Conway wrote: > Piers wrote: > > > one could always handle the first case > > more explicitly by doing: > > > >sub load_data ($filename; $version) { > > $version = 1 if @_.length < 2; > > ... > >} > > Err...no. If you specify named parameters, you

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread David Hand
On Wed, Apr 17, 2002 at 01:40:39PM -0400, Andy Dougherty wrote: > On Wed, 17 Apr 2002, Andy Dougherty wrote: > > If I had to guess, I'd guess this was the problem. This is probably not > > as heavily-tested a Configuration as the plain 'long' version, and most of > > that has probably been on lit

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, becauseI rather like it.

2002-04-17 Thread Andy Dougherty
On Wed, 17 Apr 2002, Andy Dougherty wrote: > On Wed, 17 Apr 2002, David Hand wrote: > > > Mind you that this is Mac OS X 10.1.3, with a UFS root partition. This > > was compiled on the UFS partition. Interestingly, parrot 0.0.4 compiled > > okay. I recently tried compiling CVS parrot, but go

Re: C loop variations

2002-04-17 Thread David Wheeler
On 4/17/02 5:38 AM, "Piers Cawley" <[EMAIL PROTECTED]> claimed: > I've got the horrible feeling that doing it this way will lead to > nasty ambiguities in parsing, but if that's not the case then I must > confess that I prefer this syntax. Especially if you want to do > something like: > > for

Re: C loop variations

2002-04-17 Thread Dave Mitchell
On Tue, Apr 16, 2002 at 06:17:24PM -0700, David Wheeler wrote: > In Exegesis 4, Damian writes: > > > It's important to note that writing: > > > for @a; @b -> $x; $y {...} > # in parallel, iterate @a one-at-a-time as $x, and @b one-at-a-time as > $y > > is not the same as writing: > >

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread Simon Cozens
Simon Cozens: > Just as a data point, CVS Parrot makes test fine under the same circumstances. Guh, spoke too soon: t/pmc/array.t 1 256 11 100.00% 1 t/pmc/perlstrin 1 256 81 12.50% 7 t/pmc/pmc.t 5 1280565 8.93% 49-53 -- I am familiar with this par

Re: parrot-0.0.5 doesn't like me. Which isn't fair, really, because I rather like it.

2002-04-17 Thread Simon Cozens
David Hand: > Mind you that this is Mac OS X 10.1.3, with a UFS root partition. Just as a data point, CVS Parrot makes test fine under the same circumstances. > Hmm, I see your chosen INTVAL isn't the same size as your pointers. Parrot should > still compile and run, but you may see a ton of w