- Original Message -
From: "Leopold Toetsch" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 12:51 PM
Subject: TWEAKS: Takers Wanted - Effort And Knowledge Sought
> Platform code
> -
>We need some functions to deal with paths and files like File::Spec.
>For loading include
Wouldn't it be us anything if we had have replaced some functions
in string.c with its macroed versions. The candidates for to be
macroed are sring_length, string_compute_strlen, string_copy,
string_from_cstring, string_max_bytes, string_from_num,
string_cstring_free.
Though I know that those are
So, I know how to use find_method to get a method from an object;
but is there any way to dynamically add a method to a class?
Basically, I want to do something like this:
newclass P2, "Foo"
new P1, P2
addr I0, _Foo::somemethod
setmethod P1, "somemethod", I0
findmethod P0, P1, "s
- Original Message -
From: "chromatic" <[EMAIL PROTECTED]>> I would expect 'does' instead of
'isa'. Perhaps I missed Dan's
> explanation of the difference between 'can', 'isa', and 'does'. Maybe
> I'm thinking of 'has', though.
Though I'm not familiar with the answer that's "official" fo
On Mon, Aug 25, 2003 at 08:13:48PM +0200, Leopold Toetsch wrote:
> This patch generates a second vtable (and class enum) for a PMC, when
> the pmc class defintions contains C.
>
> To make that actually usable, I'm thinking of:
> - the vtable gets a flag for const classes
> - pmc_new uses the cons
On Monday, August 25, 2003, at 11:40 AM, Leopold Toetsch wrote:
new P5, .PerlArray
invoke
...
isa I0, P5, "array"
if I0, yep_has_array_interface
I would expect 'does' instead of 'isa'. Perhaps I missed Dan's
explanation of the difference between 'can', 'isa', and 'does'. Maybe
I'm thin
When looking at vtables (and *.ops) I'm missing C.
isa(out INT, in PMC, im STR) # set $1 to 1 if class $2 isa $3.
isa(out PMC, in PMC)
# set $1 to a const array containing $2's classes (parent first)
new P0, .PerlArray
isa P1, P0 # ("PerlArray", "Array", "array")
The last entry ("ar
This patch generates a second vtable (and class enum) for a PMC, when
the pmc class defintions contains C.
To make that actually usable, I'm thinking of:
- the vtable gets a flag for const classes
- pmc_new uses the constant PMC pool, when that flag is set
- but the vtable is first the writeable
On Mon, Aug 25, 2003 at 10:44:59AM -0600, Luke Palmer wrote:
> I started working on some XS code for embedding a Parrot interpreter in
> Perl. I ran into a few problems:
>
> 1) I don't know XS :-) (good way to learn, though)
Have you looked at what Arthur's been up to with ponie?
You can
Luke Palmer wrote:
>
> I started working on some XS code for embedding a Parrot interpreter in
> Perl. I ran into a few problems:
>
> 1) I don't know XS :-) (good way to learn, though)
>
> 2) What do I put as stacktop in Parrot_init()? I can't just use a
>local variable in
I started working on some XS code for embedding a Parrot interpreter in
Perl. I ran into a few problems:
1) I don't know XS :-) (good way to learn, though)
2) What do I put as stacktop in Parrot_init()? I can't just use a
local variable in the calling function, because it w
Gordon Henriksen wrote:
>
> Benjamin Goldberg wrote:
>
> > Gordon Henriksen wrote:
[snip]
> > > [3] Unshift hack #1: Where commit appears in the above, exit the
> > > grammar, trim the beginning of the string, and re-enter. (But that
> > > forces the grammar author to discard the regex state, whe
This rather largish patch moved 2 methods to default.pmc:
- name() returns now vtable->whoami (no more file static whoami)
- find_method() s. parrotio for usage
leo
Jos Visser wrote:
Hi,
Before reporting this as a bug I would like to know if it is not my
shallow understanding of Parrot... :-)
Wrong type on top of stack!
call _sub1
.sub _sub1
Exception handlers and "plain" subs don't play together (yet). You have
to use .pcc_sub (parrot calling convent
Hi,
Before reporting this as a bug I would like to know if it is not my
shallow understanding of Parrot... :-)
I set an exception handler, then call a subroutine and within that
subroutine an exception is triggered (because of a find_lex of a
non-existing lexical). The exception is handled but if
Benjamin Goldberg wrote:
> Gordon Henriksen wrote:
>
> > Having a lazily slurped file string simply delays disaster, and
> > opens the door for Very Big Mistakes. Such strings would have to be
> > treated very delicately, or the program would behave very
> > inefficiently or crash.
>
> Although
Gordon Henriksen wrote:
>
> Now, I don't really have much of an opinion on compound strings in
> general. I do want to address one particular argument, though—the lazily
> slurped file string.
>
> On Thursday, August 21, 2003, at 07:22 , Benjamin Goldberg wrote:
>
> > A foolish question: can you
> "TF" == Tim Fries <[EMAIL PROTECTED]> writes:
TF> Has there been any active development on mod_parrot since last
TF> year?
active, no. I was consumed with the last 9 months of school.
TF> The CVS on perl.org seems to have lost steam on the project 11 months
TF> ago. This is an area I'm in
18 matches
Mail list logo