Re: popping an empty intlist

2002-10-13 Thread Leopold Toetsch
Jerome Quelin wrote: My goal is to provide a Befunge interpreter that just does the right thing out of the box - that is, that does not need to patch Parrot in order to function. Arrays (and all classes) are currently reorganized. The mentioned patch is a current hack, to get your

Re: popping an empty intlist

2002-10-13 Thread Leopold Toetsch
Jerome Quelin wrote: Hi there, I just discovered that: a) my befunge interpreter is broken (would you stop beaking it please? :o)) b) push and pop operations are now supported by lists c) there's a pmc for handling list of integers: intlist So, what else can I do? Catching

Re: popping an empty intlist

2002-10-13 Thread Jerome Quelin
On Saturday 12 October 2002 18:26, Brent Dax wrote: # So, what else can I do? Catching exceptions (is that possible # with Parrot)? Not just yet. The ideas for exceptions are still bouncing around in the caverns of Dan's brain. :^) So, what am I suppose to do? Is there a way to get the

RE: popping an empty intlist

2002-10-13 Thread Brent Dax
--Brent Dax [EMAIL PROTECTED] @roles=map {Parrot $_} qw(embedding regexen Configure) Wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles. And radio operates exactly the same way. The only difference is that there is no cat.

RE: popping an empty intlist

2002-10-13 Thread Brent Dax
Jerome Quelin: # On Saturday 12 October 2002 18:26, Brent Dax wrote: # # So, what else can I do? Catching exceptions (is that # possible # with # Parrot)? Not just yet. The ideas for exceptions are still bouncing # around in the caverns of Dan's brain. :^) # # So, what am I suppose to

Re: popping an empty intlist

2002-10-13 Thread Jerome Quelin
On Saturday 12 October 2002 17:56, Leopold Toetsch wrote: So, what else can I do? Catching exceptions (is that possible with Parrot)? Please have a look at list - not a PMC currently but can/does simulate intlist now for testing. just compile/link list instead of intlist. list_pop(...)

Re: popping an empty intlist

2002-10-13 Thread Steve Fink
On Sat, Oct 12, 2002 at 04:53:57PM +0200, Jerome Quelin wrote: But I have a problem. When popping a value from an empty list, I get a No entries on list! exception. Instead, I want to get a zero. I can add something like: CHECK_EMPTY: set I0, P2 eq I0, 0, PUSH_ZERO ret