Possible new PMC

2002-02-21 Thread Melvin Smith
I want to emulate a packed structure with Parrot in the way a compiler would normally do this for a low level machine. It just needs traditional notation for setting fields by offset into the struct. I sort of feel that PerlString _could_ handle this, but I'm curious if there are any gotchas I'm

Re: Initial bignum pdd

2002-02-21 Thread Bryan C. Warnock
On Thursday 21 February 2002 22:08, Alex Gough wrote: > This is a slightly confused first attempt at a pdd. I'll start to add > extra details over the next couple of days. > > Is 8 the right number? And can someone who knows how fix the ones in > the repository to have more meaningful file names

Initial bignum pdd

2002-02-21 Thread Alex Gough
This is a slightly confused first attempt at a pdd. I'll start to add extra details over the next couple of days. Is 8 the right number? And can someone who knows how fix the ones in the repository to have more meaningful file names? Alex Gough #

Re: [Patch] make key.c compile for lcc, tcc [APPLIED]

2002-02-21 Thread Dan Sugalski
At 8:06 PM -0500 2/21/02, Josh Wilmes wrote: >Although there's more work being done on the key stuff and this isn't the >final fix, applying this patch does get parrot to build with two more >compilers, so it's probably worthwhile. Applied, thanks. -- Dan

[Patch] make key.c compile for lcc, tcc

2002-02-21 Thread Josh Wilmes
This is the key.c portion of Jonathan Stowe <[EMAIL PROTECTED]>'s patch from <[EMAIL PROTECTED]> Although there's more work being done on the key stuff and this isn't the final fix, applying this patch does get parrot to build with two more compilers, so it's probably worthwhile. [josh-009.pat

Re: [Patch] Yet more warnings-fixes and cleanups [APPLIED]

2002-02-21 Thread Dan Sugalski
At 1:52 PM -0500 2/18/02, Josh Wilmes wrote: >Fixes the following (lcc) warnings: > > - interpreter.c:470: warning: expression with no effect elided >(related to the way warnings flags were defined) > > - misc.c:352: warning: unreachable code > misc.c:483: warning: unreachable c

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-21 Thread Larry Wall
David M. Lloyd writes: : On Thu, 21 Feb 2002, Sam Vilain wrote: : : > I can't count the number of times I've had to do something like: : > : > if (defined $foo and $foo ne "bar") { } : > : > to avoid my program writing garbage to STDERR. : : Of course you will now be able to say: : : if ($foo

Re: Duplicate code in PerlNum

2002-02-21 Thread Nicholas Clark
On Tue, Feb 12, 2002 at 11:28:26PM +, Simon Glover wrote: > > Currently the add, subtract, multiply and divide methods in perlnum.pmc > are all coded along the lines of: > > void add (PMC * value, PMC* dest) { > if(value->vtable == &Parrot_base_vtables[enum_class_PerlInt]) {

Re: [Patch] [was Re: Current CVS on Win32 ] [APPLIED]

2002-02-21 Thread Dan Sugalski
At 2:08 PM -0500 2/18/02, Josh Wilmes wrote: >The "inline" bit of that patch was no longer needed, and the ssize_t thing >really shouldn't be needed either. Applied, thanks. -- Dan --"it's like this"---

Re: [Patch] Win32: Borland C support [APPLIED]

2002-02-21 Thread Dan Sugalski
At 12:39 AM +0100 2/21/02, Ritz Daniel wrote: >this patch adds support for the freely availabe borland c++ 5.5.1 compiler > >depends on: >- josh's patch to remove ssize_t from CPrederef.pm Applied, thanks. I'm not sure I got Josh's ssize_t remove patch in--I'll go look now. --

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-21 Thread David M. Lloyd
On Thu, 21 Feb 2002, Sam Vilain wrote: > I can't count the number of times I've had to do something like: > > if (defined $foo and $foo ne "bar") { } > > to avoid my program writing garbage to STDERR. Of course you will now be able to say: if ($foo // "" ne "bar") { } Right? - D <[EMAIL PR

Re: RFC: new logical operator & more syntactic maple syrup

2002-02-21 Thread Sam Vilain
Aaron Sherman <[EMAIL PROTECTED]> wrote: > An off-the-wall thought... If this is not the "expected" condition, > should it have the extra meaning of an assertion? For example, > could set $! to 'defined $foo but $foo eq ""' and, if -w was in use, > issue 'warn "Exceptional condition: $!"' Intere

Re: [Patch] Remove cuddled elses [APPLIED]

2002-02-21 Thread Dan Sugalski
At 11:44 PM -0500 2/18/02, Josh Wilmes wrote: > >This patch removes cuddled elses, as required by PDD 7. Applied, thanks. -- Dan --"it's like this"--- Dan Sugalski even samurai

Re: [Patch] Automated tests for PDD 7 standards [APPLIED]

2002-02-21 Thread Dan Sugalski
At 11:13 PM -0500 2/18/02, Josh Wilmes wrote: >This patch adds a new Makefile target called "check_source". This target >scans all the .c and .h files in the directory and checks for conformance to >a number of the standards outlined in PDD 7. Applied, thanks. --

Re: RFC: new logical operator

2002-02-21 Thread Sam Vilain
[EMAIL PROTECTED] (Randal L. Schwartz) wrote: > Sam> No, "but" is syntactically equivalent to "and" in English. It just > Sam> implies that the second condition is not generally what you'd > Sam> expect if the first was true. > Maybe in the interest of huffman encoding, we could make it > "even_

Re: [Patch] Win32: Borland C support

2002-02-21 Thread Melvin Smith
At 11:19 PM 2/20/2002 -0500, Josh Wilmes wrote: >At 0:39 on 02/21/2002 +0100, "Ritz Daniel" <[EMAIL PROTECTED]> wrote: > > > - add a O_BINARY flag to open() in pdump.c, embed.c (required by bcc) > > - define O_BINARY 0 when it's not defined (win32 knows it, linux not) > >Offhand, i'm wondering i

Re: RFC: new logical operator

2002-02-21 Thread Aaron Sherman
On Thu, 2002-02-21 at 09:01, Sam Vilain wrote: > On Thu, 21 Feb 2002 06:50:13 -0600 > [EMAIL PROTECTED] wrote: > > > On Thu, Feb 21, 2002 at 12:30:11PM +, Sam Vilain wrote: > > > I think Perl 6 should have a "but" keyword, as in: > > > if (defined $foo but $foo eq "") { > > *scratches head* >

Re: [PATCH] Gah! Defeat Bystander Syndrome

2002-02-21 Thread Simon Cozens
David M. Lloyd: > This silly bug has been driving me mad, so I'm posting this very simple > patch despite the fact that I should really be working instead. (Guess I > got sick of seeing all three Solaris targets on fire :-) Thanks, applied. That *was* silly, yes. :) -- "So i get the chance to

Re: Re: RFC: new logical operator

2002-02-21 Thread Melvin Smith
At 09:47 AM 2/21/2002 -0500, [EMAIL PROTECTED] wrote: >"Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > >Sam> No, "but" is syntactically equivalent to "and" in English. It >Sam> just implies that the second condition is not generally what >Sam> you'd expect if the first was true. > >Randal> Mayb

Re: Re: RFC: new logical operator

2002-02-21 Thread Austin Hastings
It can't be that confusing at first glance if English dedicates a slot way up in the huffman table to the word, eh? print "; " if ($need_eol but $current_column < 21); OTOH, this might become an "and grep-not" operator for (was it Damian?)'s quantum operators: @y = all(@x) but { /^anti/ }

Re: Re: RFC: new logical operator

2002-02-21 Thread jadams01
"Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: Sam> No, "but" is syntactically equivalent to "and" in English. It Sam> just implies that the second condition is not generally what Sam> you'd expect if the first was true. Randal> Maybe in the interest of huffman encoding, we could make Randal>

Re: RFC: new logical operator

2002-02-21 Thread Randal L. Schwartz
> "Sam" == Sam Vilain <[EMAIL PROTECTED]> writes: Sam> No, "but" is syntactically equivalent to "and" in English. It just Sam> implies that the second condition is not generally what you'd expect if Sam> the first was true. Maybe in the interest of huffman encoding, we could make it "even_t

[PATCH] Gah! Defeat Bystander Syndrome

2002-02-21 Thread David M. Lloyd
This silly bug has been driving me mad, so I'm posting this very simple patch despite the fact that I should really be working instead. (Guess I got sick of seeing all three Solaris targets on fire :-) Index: io_unix.c === RCS file:

Re: RFC: new logical operator

2002-02-21 Thread Sam Vilain
On Thu, 21 Feb 2002 06:50:13 -0600 [EMAIL PROTECTED] wrote: > On Thu, Feb 21, 2002 at 12:30:11PM +, Sam Vilain wrote: > > I think Perl 6 should have a "but" keyword, as in: > > if (defined $foo but $foo eq "") { > *scratches head* > so... it negates the left side, then ANDs it with the right?

Re: RFC: new logical operator

2002-02-21 Thread hachi
On Thu, Feb 21, 2002 at 12:30:11PM +, Sam Vilain wrote: > I think Perl 6 should have a "but" keyword, as in: > > if (defined $foo but $foo eq "") { *scratches head* so... it negates the left side, then ANDs it with the right? also, it seems to be rather vague to me. in order to sound clear

RFC: new logical operator

2002-02-21 Thread Sam Vilain
I think Perl 6 should have a "but" keyword, as in: if (defined $foo but $foo eq "") { } :-)