Re: [perl #17844] [PATCH] Avoid JIT on Sparc with 64-bit INTVAL and 32-bit pointers

2002-10-10 Thread Steve Fink
On Thu, Oct 10, 2002 at 06:52:25PM +, Andy Dougherty wrote: > > The combination of 64-bit INTVAL and 32-bit pointers doesn't work with the > Sparc jit. Seems fair to me. Thanks, applied.

RE: Failed src tests on Win32

2002-10-10 Thread Brent Dax
Nick Kostirya: # D:\Perl\bin\perl.exe t/harness # t/src/basic.# No tests run! # t/src/basic.dubious # Test returned status 255 (wstat 65280, 0xff00) # DIED. FAILED tests 1-2 # Failed 2/2 tests, 0.00% okay # t/src/intlist...# No tests run! # t/src/intlist...

Re: [PATCH] Perlhash fix & test (was Re: Eliminate padding warnings)

2002-10-10 Thread Steve Fink
Thanks, applied.

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-10 Thread Steve Fink
On Wed, Oct 09, 2002 at 11:28:32PM -0700, Brent Dax wrote: > Once I clear up the issue with the Sun compiler, I'll be committing > this. Well, a slightly modified version. Relax, it's nothing > drastic--I just ran it through check_source_standards.pl and > run_indent.pl. That checkin broke the

Failed src tests on Win32

2002-10-10 Thread Nick Kostirya
D:\Perl\bin\perl.exe t/harness t/src/basic.# No tests run! t/src/basic.dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay t/src/intlist...# No tests run! t/src/intlist...dubious Test returned s

Re: [PATCH] Removing two-arg ne

2002-10-10 Thread Leopold Toetsch
Simon Glover wrote: > On Wed, 9 Oct 2002, Dan Sugalski wrote: > > >>At 7:42 PM -0700 10/8/02, Steve Fink wrote: >> >>>Thanks, applied. >>> >>>Who came up with the idea of two-argument ne, anyway? That's kind of >>>bizarre. >>> >> >>Definitely bizarre. I think I'd rather not have it, it doesn't

Re: [parrot] Bindings for other toolkits

2002-10-10 Thread Dan Sugalski
At 10:01 AM -0700 10/10/02, Ramesh Ananthakrishnan wrote: >Hi, > Most systems, have a variety of scripting languages >to do stuff in. And almost all the time to make it >work with another library you have to specifically >port the other library to a specific interpreter. >Which means you have sep

Re: Delegation syntax

2002-10-10 Thread Larry Wall
: Problem: : : You want to use delegation rather than inheritance to : add some capabilities of one class or object to : another class or object. : : Solution: : : Use a PROXY block: : : class MyClass { : : PROXY { : attr $left_front_wheel is Wheel; : attr $right_fro

Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1

2002-10-10 Thread Larry Wall
On Wed, 9 Oct 2002, Chris Dutton wrote: : Wasn't "class MyClass;" supposed to work along the line of Perl5's : "package MyClass;" and make everything following that statement the : definition of MyClass? Yes, though we're thinking of limiting that construct to the front of a file, along with "m

Re: remote generators and a macro language proposal

2002-10-10 Thread Larry Wall
On Thu, 10 Oct 2002, Chip Salzenberg wrote: : According to Luke Palmer: : > for ( grep { $_{smoker} and $_{age} > 18 } @Subscribers ) { : > .send($Cigarette_Advertisement) : > } : : Hm, would this work too: : : for ( grep { .{smoker} and .{age} > 18 } @Subscribers ) :

Re: Object Instantiation (Was: Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1)

2002-10-10 Thread Larry Wall
On Thu, 10 Oct 2002, Michael Lazzaro wrote: : On Thursday, October 10, 2002, at 11:23 AM, John Williams wrote: : > my $obj = MyClass(...); : > : > This seems to assume that objects have a default method if you treat : > them : > like a subroutine. Kinda tcl-ish, but I don't recall anything li

Re: [perl #17803] [PATCH] Various tests

2002-10-10 Thread Clinton A. Pierce
At 07:42 PM 10/8/2002 -0700, Steve Fink wrote: >Thanks, applied. > >Who came up with the idea of two-argument ne, anyway? That's kind of >bizarre. I'd much rather have it tested if it exists at all, but it >seems pretty obscure. It's not completely without precedent, on the Z-80: RET CC

Re: Eliminate padding warnings

2002-10-10 Thread Tanton Gibbs
> on ARM, lots of these two: > > In file included from ../include/parrot/register.h:16, > from ../include/parrot/interpreter.h:42, > from ../include/parrot/parrot.h:160, > from array.c:27: > .../include/parrot/string.h:59: warning: padding struct

Object Instantiation (Was: Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1)

2002-10-10 Thread Michael Lazzaro
On Thursday, October 10, 2002, at 11:23 AM, John Williams wrote: > my $obj = MyClass(...); > > This seems to assume that objects have a default method if you treat > them > like a subroutine. Kinda tcl-ish, but I don't recall anything like > this > in the apocalypes. > > my $obj = MyClass;

Re: Interfaces

2002-10-10 Thread Larry Wall
On Mon, 7 Oct 2002, Andy Wardley wrote: : Nicholas Clark wrote: : > I think that the first syntax : > : > class Car::Q is Car renames(eject => ejector_seat) : > is CD_Player renames(drive => cd_drive); : > : > makes it more clear that I'd like to pick and choose which methods : > th

Re: remote generators and a macro language proposal

2002-10-10 Thread Chip Salzenberg
According to Luke Palmer: > for ( grep { $_{smoker} and $_{age} > 18 } @Subscribers ) { > .send($Cigarette_Advertisement) > } Hm, would this work too: for ( grep { .{smoker} and .{age} > 18 } @Subscribers ) { .send($ciggie_ad) } ? I think .{x} read

[perl #17844] [PATCH] Avoid JIT on Sparc with 64-bit INTVAL and 32-bit pointers

2002-10-10 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #17844] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=17844 > The combination of 64-bit INTVAL and 32-bit pointers doesn't work with the Sparc jit.

Re: the getting started guide

2002-10-10 Thread Erik Lechak
Robert Spier wrote: >>>So the html is canonical and you're converting it to pod? I'm >>>confused. >>> >>> >>I am writing it in my own format. It lets me take notes, write todo >>lists, autogenerate the table of contents and glossary. Then I run it >>through some perl that currently spits

Re: Interfaces

2002-10-10 Thread Larry Wall
On Mon, 7 Oct 2002, chromatic wrote: : On Wed, 02 Oct 2002 04:12:44 -0700, Michael G Schwern wrote: : : > I like the "class Vehicle is interface" as a shorthand for declaring every : > method of a class to be an interface. : : Perhaps associating a property with a class can be shorthand for asso

Re: Interface lists (was Re: Interfaces)

2002-10-10 Thread Larry Wall
On Mon, 30 Sep 2002, Michael G Schwern wrote: : On Tue, Oct 01, 2002 at 01:36:19AM +0100, Simon Cozens wrote: : > [EMAIL PROTECTED] (Michael G Schwern) writes: : > > method _do_internal_init ($num) is private { : > : > Just thinking aloud, would : > sub foo is method is private is inte

Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1

2002-10-10 Thread John Williams
On Wed, 9 Oct 2002, Michael Lazzaro wrote: > PLEASE contribute to this document! Email me with suggestions, "yes" > or "no" votes on recipe approaches, info on philosophies or best-guess > syntax, etc., or discuss them here on perl6-language. Very nice. I hope this evolves into a useful perl6

[parrot] Bindings for other toolkits

2002-10-10 Thread Ramesh Ananthakrishnan
Hi, Most systems, have a variety of scripting languages to do stuff in. And almost all the time to make it work with another library you have to specifically port the other library to a specific interpreter. Which means you have separate binding for each language. gtk has separate bindings for pe

Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1

2002-10-10 Thread Michael Lazzaro
On Thursday, October 10, 2002, at 02:33 AM, Angel Faus wrote: > Just a silly note: >> Recipe 1.9: Using Subroutines as Objects > I think it was said that the way to avoid the ambiguity here is to add > & to sub name. Thanks, applied. MikeL

Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1

2002-10-10 Thread Michael Lazzaro
On Wednesday, October 9, 2002, at 07:54 PM, Chris Dutton wrote: > One first thing I notice while I'm supposed to be doing homework. :-) > > Wasn't "class MyClass;" supposed to work along the line of Perl5's > "package MyClass;" and make everything following that statement the > definition of

[PATCH] Removing two-arg ne

2002-10-10 Thread Simon Glover
On Wed, 9 Oct 2002, Dan Sugalski wrote: > At 7:42 PM -0700 10/8/02, Steve Fink wrote: > >Thanks, applied. > > > >Who came up with the idea of two-argument ne, anyway? That's kind of > >bizarre. > > > Definitely bizarre. I think I'd rather not have it, it doesn't make much sense. Easily done. P

[PATCH] Perlhash fix & test (was Re: Eliminate padding warnings)

2002-10-10 Thread Simon Glover
On Wed, 9 Oct 2002, Tom Hughes wrote: > In message <[EMAIL PROTECTED]> > Simon Glover <[EMAIL PROTECTED]> wrote: > > > I've just had a quick look at hash.h (which I should have done in the > > first place) and you're quite right. Second attempt at a correct patch > > below. > > > >

[CVS ci] perl6 --output

2002-10-10 Thread Leopold Toetsch
One more from the section missed + left overs: This patch make "perl6 --output file" work as described in perl6 --help. $ time perl6 -o- mops.p6 | ../imcc/imcc -r -- - But above pipe is as fast^Wslow as going via .imc: $ time perl6 -r mops.p6 leo

Re: [perl #17524] [PATCH] use key functions in packfile

2002-10-10 Thread Leopold Toetsch
Leopold Toetsch (via RT) wrote: > # New Ticket Created by Leopold Toetsch > # Please include the string: [perl #17524] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt2/Ticket/Display.html?id=17524 > > > > This patch hides some internals of ke

Warnings on Solaris 8, 64-bit ints

2002-10-10 Thread Andy Dougherty
Here's my current batch of warnings from a fresh check-out. I haven't checked them out. However, if the casts between pointers and integers are correct and won't overflow, then judicious use of the INTVAL2PTR and PTR2INTVAL macros from parrot.h should silence them. The printf format warnings pro

Re: [INFO] New array base: list.c

2002-10-10 Thread Leopold Toetsch
Follow up to my announce + some additional notes. list.c checked in + intlist fix + 3 more tests. Leopold Toetsch wrote: > The current implementation of array.pmc is rather inefficient and > limited - and really slow. > > So I rewrote the base routines almost from scratch and have currently a

Re: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-10 Thread Andy Dougherty
On Wed, 9 Oct 2002, Nicholas Clark wrote: > Which reminds me, not sure if this is relevant yet, but there's some or other > platform that p5p encountered that can't simply copy whatever it is the opaque > type va_list expands to there. > > There's a perl5 Configure symbol need_va_copy which indi

RE: [perl #17817] [PATCH] Parrot_sprintf-related stuff, part 2

2002-10-10 Thread Andy Dougherty
On Wed, 9 Oct 2002, Brent Dax wrote: > Can you try this? > > (at the top of the function...) > va_list *arg = (va_list *) & (obj->data); > (vararg accesses should look like...) > va_arg(*arg, ...); > (no end-of-function assignment should be necessary) > > If that w

Re: Warnings on VC++

2002-10-10 Thread Leopold Toetsch
Brent Dax wrote: > core_ops.c(19) : warning C4005: 'CONST' : macro redefinition Thanks, for reporting, (hopefully) fix checked in. leo

Delegation syntax

2002-10-10 Thread Ralph Mellor
Problem: You want to use delegation rather than inheritance to add some capabilities of one class or object to another class or object. Solution: Use a PROXY block: class MyClass { PROXY { attr $left_front_wheel is Wheel; attr $right_front_wheel is Wheel;

Delegation syntax

2002-10-10 Thread Me
Problem: You want to use delegation (rather than inheritance) to add some capabilities of one class or object to another class or object. Solution: Use a PROXY block: class MyClass { PROXY { attr $left_front_wheel is Wheel; attr $right_front_wheel is Wheel;

Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1

2002-10-10 Thread Angel Faus
Hi, Many thanks Michael, this is very useful, really. I had lost all the OO discussion and this document is very helpful. I really like the part of context transformations, I hope something like this gets in. Just a silly note: > Recipe 1.9: Using Subroutines as Objects > > Problem: > You w

Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1

2002-10-10 Thread Chris Dutton
One first thing I notice while I'm supposed to be doing homework. :-) Wasn't "class MyClass;" supposed to work along the line of Perl5's "package MyClass;" and make everything following that statement the definition of MyClass?

Re: Fw: perl6 operator precedence table

2002-10-10 Thread Brad Hughes
Larry Wall wrote: [...] > Maybe we should ... to mean "and so on forever": > > @a[0...; 0...:10; 0...:100] > > Except then we couldn't use it to mean what Ruby means by it, which > might be handier in real life. No more yada-yada-yada? Brad

Re: the getting started guide

2002-10-10 Thread Simon Wistow
On Wed, Oct 09, 2002 at 07:17:01PM -0400, Dan Sugalski said: > I'll see about getting some of the internal structures diagrammed > better, which is the only place things are a little dodgy, but that's > otherwise fine. [accidentally sent to Robert Spier ony earlier] Autodia (http://www.droogs.