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