This should never happen!

2003-08-25 Thread Tony Bowden
#!/usr/bin/perl -w use Test::More tests = 1; eval { die Foo }; ok $@, \$@; ... 1..1 Invalid value for shared scalar at /usr/local/share/perl/5.8.0/Test/Builder.pm line 319. WHOA! Somehow you got a different number of results than tests ran! This should never happen! Please contact the author

Re: This should never happen!

2003-08-25 Thread Elizabeth Mattijsen
At 22:22 +0100 8/25/03, Tony Bowden wrote: #!/usr/bin/perl -w use Test::More tests = 1; eval { die Foo }; ok $@, \$@; Invalid value for shared scalar at /usr/local/share/perl/5.8.0/Test/Builder.pm line 319. WHOA! Somehow you got a different number of results than tests ran! This should never

Re: String API

2003-08-25 Thread Benjamin Goldberg
Dan Sugalski wrote: At 12:07 AM -0400 8/19/03, Benjamin Goldberg wrote: There are a number of shortcomings in the API, which I'd like to address here, and propose improvments for. You're conflating language level strings with low-level strings. Don't. STRINGs, the parrot structure and

Re: Activity on mod_parrot?

2003-08-25 Thread Kevin Falcone
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 interested in

Applying regexen/grammars to foo objects (was Re: String API)

2003-08-25 Thread Benjamin Goldberg
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 imagine

RE: Applying regexen/grammars to foo objects (was Re: String API)

2003-08-25 Thread Gordon Henriksen
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 Dan's

Exception in find_lex messing up control stack?

2003-08-25 Thread Jos Visser
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

Re: Exception in find_lex messing up control stack?

2003-08-25 Thread Leopold Toetsch
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

[CVS ci] move name and find_method to default.pmc

2003-08-25 Thread Leopold Toetsch
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

Re: Applying regexen/grammars to foo objects (was Re: String API)

2003-08-25 Thread Benjamin Goldberg
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, whereas commit

Embedding Parrot in Perl

2003-08-25 Thread Luke Palmer
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

Re: Embedding Parrot in Perl

2003-08-25 Thread Benjamin Goldberg
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 the

Re: Embedding Parrot in Perl

2003-08-25 Thread Nicholas Clark
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 get

[CVS ci] ConstClass-1: vtables; test in SArray

2003-08-25 Thread Leopold Toetsch
This patch generates a second vtable (and class enum) for a PMC, when the pmc class defintions contains Cconst_too. 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

Implementing ISA

2003-08-25 Thread Leopold Toetsch
When looking at vtables (and *.ops) I'm missing Cisa. 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

Re: Implementing ISA

2003-08-25 Thread chromatic
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

Re: [CVS ci] ConstClass-1: vtables; test in SArray

2003-08-25 Thread Nicholas Clark
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 Cconst_too. To make that actually usable, I'm thinking of: - the vtable gets a flag for const classes - pmc_new uses the

Re: Implementing ISA

2003-08-25 Thread Chris Dutton
- 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 for