Re: [perl #38784] [PATCH] imcc/parser_util.c memory overrun

2006-03-24 Thread Leopold Toetsch
On Mar 22, 2006, at 18:53, Andy Dougherty (via RT) wrote: The following trivial patch prevents parrot from reading possibly unallocated memory: If the C char *name were less than 10 characters long, then the memcmp could read beyond the end of the allocated block; the strncmp will

PMC and object creation

2006-03-24 Thread Leopold Toetsch
There are currently 14 opcode variants of Cnew, not counting Cnewclass. But all are limited when it comes to initializers. I've now experimented (again) with Cinstantiate [1], which got deactivate during calling conv changes. Here is a typical sequence with new: o = new .Integer o = 42

Re: PMC and object creation

2006-03-24 Thread Chip Salzenberg
On Fri, Mar 24, 2006 at 04:23:53PM +0100, Leopold Toetsch wrote: There are currently 14 opcode variants of Cnew, not counting Cnewclass. But all are limited when it comes to initializers. What's the situation in which instantiate is required because the current arrangment doesn't work?

Re: PMC and object creation

2006-03-24 Thread Joshua Isom
Multimethod constructors? That's one thing that, as far as I know, is missing from parrot and could be resolved with this. Although the potential to create an array for sprintf with one opcode does sound nice, or at least one line of pir. On Mar 24, 2006, at 11:38 AM, Chip Salzenberg wrote:

Re: PMC and object creation

2006-03-24 Thread Leopold Toetsch
On Mar 24, 2006, at 18:38, Chip Salzenberg wrote: On Fri, Mar 24, 2006 at 04:23:53PM +0100, Leopold Toetsch wrote: There are currently 14 opcode variants of Cnew, not counting Cnewclass. But all are limited when it comes to initializers. What's the situation in which instantiate is required

Re: PMC and object creation

2006-03-24 Thread Roger Browne
Leopold Toetsch wrote: ...Folks are creating custom object.build methods, which after __init was called, initialize the object more. Yes, I'm doing this at the moment. It's workable but has the overhead of an extra method call. ... Above scheme (a function call with standardized name) also

[perl #38797] [TODO] CPP Comment tester overzealous

2006-03-24 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #38797] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38797 /* // testing */ and =head1 // testing =cut Both cause

[perl #38796] [TODO] rebuild language makefile without full re-configure

2006-03-24 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #38796] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38796 Right now the only way to regenerate the language makefiles is to rerun a full

Re: PMC and object creation

2006-03-24 Thread Bob Rogers
From: Leopold Toetsch [EMAIL PROTECTED] Date: Fri, 24 Mar 2006 19:29:47 +0100 On Mar 24, 2006, at 18:38, Chip Salzenberg wrote: On Fri, Mar 24, 2006 at 04:23:53PM +0100, Leopold Toetsch wrote: . . . cl = getclass 'MyClass' o = __instantiate(cl, p0, p1, 'extra' = p2)