Re: Fwd: Re: OO inheritance in a hacker style

2004-02-04 Thread Jonathan Lang
Joseph Ryan wrote: > Well, what if the two classes you want to inherit from weren't > designed with roles in mind? For instance, there might be two > CPAN modules that each have a dozen methods that you want to > inherit, but they each have 1 that overlap whose conflict you > want to easily resolv

Re: [DOCS] Documentation tools

2004-02-04 Thread Robert Spier
> I've added the Perl modules for the docs tools to lib/Parrot/IO and > lib/Parrot/Docs. I've also added Pod-Simple (2.05) and Pod-Escapes > (1.03) which they use. I probably blinked.. but why are we including CPAN modules that we are not likely to change into the parrot repository? -R

[DOCS] Documentation tools

2004-02-04 Thread Michael Scott
I've added the Perl modules for the docs tools to lib/Parrot/IO and lib/Parrot/Docs. I've also added Pod-Simple (2.05) and Pod-Escapes (1.03) which they use. Running perl tools/docs/write_docs.pl should build the html tree in docs/html. I'd be interested to know of any problems encountered.

Re: Re: RT Cleanup

2004-02-04 Thread Steve Fink
Andrew Dougherty wrote: On Wed, 4 Feb 2004, Steve Fink wrote: On Feb-02, Andrew Dougherty wrote: [EMAIL PROTECTED] 19184 languages/perl6/t/rx/call test error 1 years Keep this one open. The tests still fail. How recentl

Fwd: Re: OO inheritance in a hacker style

2004-02-04 Thread Joseph Ryan
Woops, sent it to the wrong list! - Joe Joseph Ryan wrote: Luke Palmer wrote: Austin Hastings writes: Hmm. The text and examples so far have been about methods and this seems to be about multi-methods. Correct me if I'm wrong ... You're wrong. Consider my example, where via single inh

Re: Alignment Issues with *ManagedStruct?

2004-02-04 Thread Uri Guttman
> "c" == chromatic <[EMAIL PROTECTED]> writes: c> I ran this program in lieu of the debugger: i recall an old trick i learned to get offsets into structs which would be easier to read than hex addresses: c> int main () c> { c> SDL_KeyboardEvent kbevent; c> printf( "0x%08X

Re: Alignment Issues with *ManagedStruct?

2004-02-04 Thread chromatic
On Wed, 2004-02-04 at 13:36, Leopold Toetsch wrote: > > As I understand it (and correct me if I'm wrong), SDL_keysym needs a > > byte of padding on my architecture within SDL_KeyboardEvent. > Brr. I don't know. I've to ask my debugger for that :) If you have > SDL_keysym alone, that needs 3 bytes

[CVS ci] new errors{on,off} opcodes

2004-02-04 Thread Leopold Toetsch
This ... .include "errors.pasm" errorsoff .PARROT_ERRORS_GLOBALS_FLAG find_global P1, "no_such_global" defined I0, P1 ... allows working around current exception handler (COW) bug and is more perlish then the default pie-thonish behavior, which is: just throw an exception

Re: Alignment Issues with *ManagedStruct?

2004-02-04 Thread Leopold Toetsch
Chromatic <[EMAIL PROTECTED]> wrote: > In this case, it doesn't, as the struct I'm emulating is: > typedef struct { > Uint8 type; /* SDL_KEYDOWN or SDL_KEYUP */ > Uint8 which;/* The keyboard device index */ > Uint8 state;/* SDL_PRESSED or SD

Re: RT Cleanup

2004-02-04 Thread Andrew Dougherty
On Wed, 4 Feb 2004, Steve Fink wrote: > On Feb-02, Andrew Dougherty wrote: > > [EMAIL PROTECTED] 19184 languages/perl6/t/rx/call test error > >1 years > > > > Keep this one open. The tests still fail. > > How recently did you check? I

Re: Alignment Issues with *ManagedStruct?

2004-02-04 Thread chromatic
On Wed, 2004-02-04 at 00:52, Leopold Toetsch wrote: > Pushing zero as offset should do The Right Thing, that is proper > aligning the item. Tighter packed structures can be achieved with > explicit offset parameters. In this case, it doesn't, as the struct I'm emulating is: typedef struc

Re: crash in HEAD

2004-02-04 Thread Luke Palmer
Sterling Hughes writes: > Hey, > > The following PIR crashes CVS head: > > .sub _main > $P0 = new PerlUndef > .sym PerlUndef i > i = new PerlUndef > i = 0 > L0: > $I0 = 0 > $P1 = new PerlUndef > $P1 = 10 > unless i < $P1 goto L3 >

Re: OO inheritance in a hacker style

2004-02-04 Thread Michael G Schwern
On Wed, Feb 04, 2004 at 01:30:44AM -0500, Joseph Ryan wrote: > >Whether it should actually be in the language is up for debate. I'd say > >that if you need to do this with any frequency whatsoever, you're not > >thinking about roles right. A good example might be in order... :-) > > Well, what i

Re: RT Cleanup

2004-02-04 Thread Steve Fink
On Feb-02, Andrew Dougherty wrote: > [EMAIL PROTECTED] 19184 languages/perl6/t/rx/call test error > 1 years > > Keep this one open. The tests still fail. How recently did you check? I committed a reimplementation of perl6 regexes abou

crash in HEAD

2004-02-04 Thread Sterling Hughes
Hey, The following PIR crashes CVS head: .sub _main $P0 = new PerlUndef .sym PerlUndef i i = new PerlUndef i = 0 L0: $I0 = 0 $P1 = new PerlUndef $P1 = 10 unless i < $P1 goto L3 $I0 = 1 L3: if $I0 goto L1 goto

Re: Some minor decisions and timetables

2004-02-04 Thread Luke Palmer
Leopold Toetsch writes: > I'd add some syntax additions and some notes: > > - Pn above is a NameSpace PMC, derived from Hash > - an interpreter has a current namespace > - located in the context, so that its restored after sub calls > >getinterp P2 >find_global Pn, P2["."] # get current

Re: Some minor decisions and timetables

2004-02-04 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Okay, here's a quick scoop and status. > *) I'd like to shoot for a Feb 14th release. Names wanted. (I'm > partial to the bleeding heart release, but not that partial) I had planned towards Feb 29th. A nice dated too this year. > *) Namespaces are going

Re: [perl #25960] [PATCH] COWed stack bug (was IMCC - PerlArray getting trounced)

2004-02-04 Thread Leopold Toetsch
Matt Fowles <[EMAIL PROTECTED]> wrote: > This patch make the problem case submitted by Jeff Clites work. All > tests pass, and his sample has been added to the tests. > struct RegisterChunkBuf* top = stack->top; > if (top->used > 1) { > +top->used--; Thanks for the patch *but*

Re: OO inheritance in a hacker style

2004-02-04 Thread Luke Palmer
Joseph Ryan writes: > >It's surely possible by modifying that class's DISPATCH. > > > >Whether it should actually be in the language is up for debate. I'd say > >that if you need to do this with any frequency whatsoever, you're not > >thinking about roles right. A good example might be in order

Parrot Embedding Questions

2004-02-04 Thread Mattias Nordstrom
Hi, I would like to add Parrot as a scripting engine for a software project. Embedding it is no problem, but I was wondering if the current implementation supports the embedder to provide functions to the Parrot bytecode applications? The idea is that I would like to access C functions the embedde

Perl on WinCE

2004-02-04 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi, This is with regard to deploying Perl on Windows CE. My hardware setup consists of an Intel Celeron Processor, an i830M4 chipset Intel motherboard and I am running WindowsCE .Net 4.2 here. The board is targeted at Notebook devices. This is acting as my Windows CE device while I am using a

Perl on WinCE

2004-02-04 Thread PerlDiscuss - Perl Newsgroups and mailing lists
Hi, This is with regard to deploying Perl on Windows CE. My hardware setup consists of an Intel Celeron Processor, an i830M4 chipset Intel motherboard and I am running WindowsCE .Net 4.2 here. The board is targeted at Notebook devices. This is acting as my Windows CE device while I am using a

Re: Unicode in Emacs (was: Semantics of vector operations)

2004-02-04 Thread Kurt Starsinic
On Feb 03, David Wheeler wrote: > On Feb 3, 2004, at 7:13 AM, Kurt Starsinic wrote: > > >No joke. You'll need to have the "mule-ucs" module installed. > >A quick Google search turns up plenty of sources. > > Oh, I have Emacs 21.3.50. Mule is gone. I'm afraid you're on your own, then. I

[perl #25960] [PATCH] COWed stack bug (was IMCC - PerlArray getting trounced)

2004-02-04 Thread via RT
# New Ticket Created by Matt Fowles # Please include the string: [perl #25960] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=25960 > All~ This patch make the problem case submitted by Jeff Clites work. All tests pass

Re: Some minor decisions and timetables

2004-02-04 Thread Tim Bunce
On Tue, Feb 03, 2004 at 09:27:31PM +, Harry Jackson wrote: > Dan Sugalski wrote: > > > >*) I'll try and patch up the docs, and I'll concentrate on the PDDs, but > >any help on them is greatly appreciated. *Especially* IMCC docs. > > Do we need an NCI section in the IMCC.faq. If the vote is ye

Re: [perl #25948] IMCC doesn't trace lifetimes properly

2004-02-04 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > the following code trips up IMCC's temp lifetime tracing: Fix committed. leo

Re: Alignment Issues with *ManagedStruct?

2004-02-04 Thread Leopold Toetsch
Chromatic <[EMAIL PROTECTED]> wrote: > set layout['member'], .DATATYPE_INT > push layout, 0 > push layout, 0 Pushing zero as offset should do The Right Thing, that is proper aligning the item. Tighter packed structures can be achieved with explicit offset parameters. Its basical