[perl #29385] [PROPOSED PATCH] Return Nested Structs from Structs

2004-05-05 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #29385] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29385 > The attached patch allows you to fetch nested structs from their enclosing structs. It

[perl #29380] [Test PATCH] Accessing Pointers in Structs as Aggregates

2004-05-05 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #29380] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29380 > I have an array hanging off of a struct: typedef struct SDL_Surface {

Re: A12: Required Named Parameters Strike Back!

2004-05-05 Thread Abhijit A. Mahabal
On Wed, 5 May 2004, John Siracusa wrote: > Anyway, once we're spelling things out, don't forget to throw in some > traits for params that are required and must be provided as pairs. > Damian promised! ;) Looking thru what exists of P6C I saw this in P6C/Nodes.pm: use Class::Struct P6C::signatur

Re: A12: Required Named Parameters Strike Back!

2004-05-05 Thread John Siracusa
On 5/5/04 6:24 PM, Austin Hastings wrote: > To answer Dan's posting: I fully expect to never use any of these > sigils, myself. I'm sure there will be traits for this- nice > verbose traits. (Signatures are about as write-once as you can get...) > > method x( > requires:invocant $me, > require

Specifying class interfaces with AUTOMETH

2004-05-05 Thread Austin Hastings
I was looking at *Unit the other day, and at the very satisfying "Mock Objects" systems that have grown up around them for automated testing. In a Decorator/delegation context, it seems like yet another case where there's two ways to do things: 1- In(tro)spect the classes you want to replicate/ex

A12: Required Named Parameters Strike Back!

2004-05-05 Thread Austin Hastings
> -Original Message- > From: Larry Wall [mailto:[EMAIL PROTECTED] > > On Wed, May 05, 2004 at 04:25:45PM -0400, Austin Hastings wrote: > : In this case, the reliance on saying: > : > : if (+$x > 9) ... > : > : to disambiguate logical/arithmetic/string/whatever context in > expressi

Re: reporting bugs to RT

2004-05-05 Thread Andy Lester
On Thu, May 06, 2004 at 12:44:58AM -0200, Gabor Szabo ([EMAIL PROTECTED]) wrote: > I guess this answer also means that there is no script similar to > perlbug that would report bugs about CPAN modules ? > Wouldn't this help increasing the use or RT ? Not everyone uses RT. Many authors ignore it,

Re: reporting bugs to RT

2004-05-05 Thread Gabor Szabo
On Wed, 5 May 2004, Andy Lester wrote: > On Wed, May 05, 2004 at 11:40:32PM -0200, Gabor Szabo ([EMAIL PROTECTED]) wrote: > > Is there some command line tool that can be used to report bugs to RT ? > > Sure, it's called "sendmail". > > If you want to send a bug on Test::Harness, send an email to

Re: Continuation register -- last chance for objections

2004-05-05 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Unless someone objects (and as this'll need some JIT re-jigging I can > see there being an issue) I'm going to add a return continuation > register to the context structure, change the invocation ops to put > the return continuation in there, and add in a R

Re: TODO: Linker magic step for configure

2004-05-05 Thread Jeff Clites
On May 5, 2004, at 12:06 PM, Dan Sugalski wrote: At 7:57 PM +0100 5/5/04, Nicholas Clark wrote: On Wed, May 05, 2004 at 08:59:03AM -0400, Dan Sugalski wrote: Yeah, that's what I'm figuring. The symbols themselves should be cross-platform, modulo the odd prefix character, or so I hope. The linker

Re: A12: Required Named Parameters Strike Back!

2004-05-05 Thread Dan Sugalski
At 1:55 PM -0700 5/5/04, Larry Wall wrote: On Wed, May 05, 2004 at 04:25:45PM -0400, Austin Hastings wrote: : In this case, the reliance on saying: : : if (+$x > 9) ... : : to disambiguate logical/arithmetic/string/whatever context in expressions is : going to sit at cross purposes to the +-a

Re: A12: Required Named Parameters Strike Back!

2004-05-05 Thread Larry Wall
On Wed, May 05, 2004 at 04:25:45PM -0400, Austin Hastings wrote: : In this case, the reliance on saying: : : if (+$x > 9) ... : : to disambiguate logical/arithmetic/string/whatever context in expressions is : going to sit at cross purposes to the +-as-required-arg usage. It'll be yet : anot

Re: reporting bugs to RT

2004-05-05 Thread Andy Lester
On Wed, May 05, 2004 at 11:40:32PM -0200, Gabor Szabo ([EMAIL PROTECTED]) wrote: > Is there some command line tool that can be used to report bugs to RT ? Sure, it's called "sendmail". If you want to send a bug on Test::Harness, send an email to [EMAIL PROTECTED] xoa -- Andy Lester => [EMAIL P

reporting bugs to RT

2004-05-05 Thread Gabor Szabo
Is there some command line tool that can be used to report bugs to RT ? Something that after I saw that make test fails (or even if it just prints warnings) I can type some command line magic and will submit a bug report with all the relevant information including the output of make test. Simila

RE: A12: Required Named Parameters Strike Back!

2004-05-05 Thread Austin Hastings
> -Original Message- > From: Larry Wall [mailto:[EMAIL PROTECTED] > > On Wed, May 05, 2004 at 09:02:14AM -0500, Jonathan Scott Duff wrote: > : > Hmm... I'm quite sure that I like ~ better than + for mnemonic purposes. > : > : I agree. > > I think + is easier to see. Mnemonic value is a sec

[PATCH: P6C] update calling convention

2004-05-05 Thread Abhijit A. Mahabal
Hi, this is my first patch ever (not just p6i: ever). So do tell me what I have done wrong. This is a patch for one of the ToDo items in languages/perl6/Todo. I have updated the calling conventions in a bunch of places, but may have missed some. One more subtest is failing because of my c

Re: TODO: Linker magic step for configure

2004-05-05 Thread Ron Blaschke
On Wed, 5 May 2004 13:59:14 -0400, Dan Sugalski wrote: >>Windows requires this export list, which is currently stored in the >>"module-definition file" libparrot.def. However, Windows provides a >>"nicer" way of doing this, by prefixing a declaration with >>__declspec(dllexport) someFunction >>Wi

Re: TODO: Linker magic step for configure

2004-05-05 Thread Dan Sugalski
At 7:57 PM +0100 5/5/04, Nicholas Clark wrote: On Wed, May 05, 2004 at 08:59:03AM -0400, Dan Sugalski wrote: Yeah, that's what I'm figuring. The symbols themselves should be cross-platform, modulo the odd prefix character, or so I hope. The linker magic is definitely going to be platform and lin

Re: [perl #29257] Build libnci.so by default

2004-05-05 Thread Nicholas Clark
On Fri, Apr 30, 2004 at 01:14:21PM +0200, Leopold Toetsch wrote: > Bernhard Schmalhofer <[EMAIL PROTECTED]> wrote: > > > 'libnci.so' is used for testing the native call interface. However I noticed > > that the tests in t/pmc/nci.t were skipped, because 'libnci.so' wasn't built > > by default. The

Re: TODO: Linker magic step for configure

2004-05-05 Thread Nicholas Clark
On Wed, May 05, 2004 at 08:59:03AM -0400, Dan Sugalski wrote: > Yeah, that's what I'm figuring. The symbols themselves should be > cross-platform, modulo the odd prefix character, or so I hope. The > linker magic is definitely going to be platform and linker > specific--we may have to throw in

Re: TODO: Linker magic step for configure

2004-05-05 Thread Dan Sugalski
At 7:16 PM +0200 5/5/04, Ron Blaschke wrote: On Tue, 4 May 2004 08:34:55 -0400, Dan Sugalski wrote: Another todo list task for the interested. A perl & linker thing. Right now, through the wonders of the Unix default linking conventions, every function in parrot gets exported whether we want th

[perl #29368] [BUG] "make fulltest" tries to test disabled cores

2004-05-05 Thread via RT
# New Ticket Created by Jens Rieks # Please include the string: [perl #29368] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=29368 > Hi, "make fulltest" is running for cores that are disabled $ perl Configure.pl --cgot

parrot once again working on Cygwin

2004-05-05 Thread Joshua Gatcomb
--- Leopold Toetsch <[EMAIL PROTECTED]> wrote: > Above error is only possible, when ARENA_DOD_FLAGS > is turned on. This > switch relies on the presence of a working memalign > function. The > C<--gc> option isn't related to this. But you can > turn off > ARENA_DOD_FLAGS in include/parrot/pobj.h li

Re: Cygwin problems are GC not ICU (was Re: Cygwin issues may not be ICU related)

2004-05-05 Thread Joshua Gatcomb
--- Leopold Toetsch <[EMAIL PROTECTED]> wrote: > (gdb) bt > (gdb) p pmc > /gdb) p *((Dead_PObj*)pmc) > would be good. Program received signal SIGSEGV, Segmentation fault. 0x00419f6c in new_pmc_header (interpreter=0x100d1d68, flags=1024) at src/headers.c:251 251 *((Dead_PObj*)pmc)->aren

Re: TODO: Linker magic step for configure

2004-05-05 Thread Ron Blaschke
On Tue, 4 May 2004 08:34:55 -0400, Dan Sugalski wrote: > Another todo list task for the interested. A perl & linker thing. > > Right now, through the wonders of the Unix default linking > conventions, every function in parrot gets exported whether we want > them to be or not, and generally we d

Continuation register -- last chance for objections

2004-05-05 Thread Dan Sugalski
Unless someone objects (and as this'll need some JIT re-jigging I can see there being an issue) I'm going to add a return continuation register to the context structure, change the invocation ops to put the return continuation in there, and add in a RETURN keyword that works just like a plain i

Re: Test result on win32 with 2 failures

2004-05-05 Thread Leopold Toetsch
Ron Blaschke <[EMAIL PROTECTED]> wrote: > I have attached a proposal for a TODO.win32 for your consideration. Thanks, applied. leo

Re: A12: Required Named Parameters Strike Back!

2004-05-05 Thread Larry Wall
On Wed, May 05, 2004 at 09:02:14AM -0500, Jonathan Scott Duff wrote: : > Hmm... I'm quite sure that I like ~ better than + for mnemonic purposes. : : I agree. I think + is easier to see. Mnemonic value is a secondary issue in something that will be used so heavily. Larry

This week's summary

2004-05-05 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 2004-05-02 So, May Day didn't quite knock me for six this year (but being up at 4am on Newcastle Town Moor on Saturday morning to welcome in the summer with a bunch of rapper dancers (and no, rapper does not involve large shouty men wearing p

Re: A12: Required Named Parameters Strike Back!

2004-05-05 Thread Jonathan Scott Duff
On Tue, May 04, 2004 at 04:14:44PM -0600, Luke Palmer wrote: > Dov Wasserman writes: > > Since in the rest of Perl 6, the '~' operator involves string > > representation, perhaps the standard +$foo marker should really be ~$foo: > > i.e., $foo only has a (string) name, not a numeric position. Thus

Re: One more thing...

2004-05-05 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 12:02 PM +0200 5/5/04, Leopold Toetsch wrote: >>Changing C or any MMDed opcode to look like a branch is a severe >>performance impact for the non-overloaded case. > If the JIT structure makes it untenable, it doesn't work, and that's > fine. I don't thi

Re: Test result on win32 with 2 failures

2004-05-05 Thread Ron Blaschke
On Tue, 4 May 2004 09:11:00 +0200, Leopold Toetsch wrote: >> Is there anything specific that is known to be broken/not yet implemented >> on Win32? Anything else I can help with? > > One more thing comes to my mind. That's dynamic loading of classes and > bytecode (dynclasses/ and dynoplibs/). W

Re: Cygwin problems are GC not ICU (was Re: Cygwin issues may not be ICU related)

2004-05-05 Thread Leopold Toetsch
Joshua Gatcomb <[EMAIL PROTECTED]> wrote: > Program received signal SIGSEGV, Segmentation fault. > 0x00419f6c in new_pmc_header (interpreter=0x100d1d48, > flags=1024) at src/headers.c:251 > 251 *((Dead_PObj*)pmc)->arena_dod_flag_ptr > |= (gdb) bt (gdb) p pmc /gdb) p *((Dead_PObj*)pm

Re: One more thing...

2004-05-05 Thread Dan Sugalski
At 12:02 PM +0200 5/5/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: At 11:35 AM +0200 4/30/04, Leopold Toetsch wrote: Dan Sugalski <[EMAIL PROTECTED]> wrote: If we go MMD all the way, we can skip the bytecode->C->bytecode transition for MMD functions that are written in pa

Cygwin problems are GC not ICU (was Re: Cygwin issues may not be ICU related)

2004-05-05 Thread Joshua Gatcomb
--- Jeff Clites <[EMAIL PROTECTED]> wrote: > If you run it in a debugger (gdb or whatever), you > should be able to > see where it's crashing. Ok, after spending about 5 minutes figuring out what gdb was and how to use it (did I mention I was clueless) it looks like it isn't ICU at all Pro

Re: TODO: Linker magic step for configure

2004-05-05 Thread Dan Sugalski
At 12:40 AM -0700 5/5/04, Jeff Clites wrote: On May 4, 2004, at 5:34 AM, Dan Sugalski wrote: The right way to fix this is to have a file with the acceptable exportable symbols and a fix to the link stage to convince the linker that it should *only* export these symbols. I have this working locall

Re: One more thing...

2004-05-05 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 11:35 AM +0200 4/30/04, Leopold Toetsch wrote: >>Dan Sugalski <[EMAIL PROTECTED]> wrote: >>> If we go MMD all the way, we can skip the bytecode->C->bytecode >>> transition for MMD functions that are written in parrot bytecode, and >>> instead dispatch

Re: TODO: Linker magic step for configure

2004-05-05 Thread Jeff Clites
On May 4, 2004, at 5:34 AM, Dan Sugalski wrote: The right way to fix this is to have a file with the acceptable exportable symbols and a fix to the link stage to convince the linker that it should *only* export these symbols. I have this working locally on Mac OS X--I expect it will be rather pl