On Tue, 22 Jun 2004, Leopold Toetsch wrote:

> b1.py calls recursively functions, the depth is limited by the
> interpreter, which throws a RuntimeException at recursion depth 1000. So
> does Parrot now.
>
> The limit can be change by:
>
>    $P0 = getinterp
>    .local int new_limit
>    .local int old_limit
>    new_limit = 4711
>    old_limit = $P0."recursion_limit"(new_limit)

That's fine. We should add this (and anything else we do this way) to the
interpinfo op so the values can be fetched back out, both by bytecode and
via the interpinfo call for C code.. I'm tempted to have a special op for
setting interpreter values rather than rely on methods, since this is all
very low level, and likely to be set via C code. (Where method calls into
parrot are a bit of a pain)

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to