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(...)

How should I change the default, and use list instead of intlist? But see 
below...


>    if (list->length == 0) {
>         return 0;
>    }
> Would just need one "if" in list_pop  near the end of the file to return
> what you want for empty list.

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.

Anyway, maybe the correct answer would be to create my own pmc class that 
would derive from your list, and that has the behaviour I want... But then 
the question would be: how should I do that?

And remember that I want to have a Befunge interpreter that works "as is". 
ie, that uses only Parrot basics, and does not need to recompile...


Jerome
-- 
[EMAIL PROTECTED]

Reply via email to