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
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
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?
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:
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
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
# 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
# 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
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)