[m-users.] Tail recursion optimisation
Volker Wysk
post at volker-wysk.de
Mon May 18 16:08:08 AEST 2026
Am Montag, dem 18.05.2026 um 15:58 +1000 schrieb Zoltan Somogyi:
>
>
> On Mon, 18 May 2026 07:56:22 +0200, Volker Wysk <post at volker-wysk.de>
> wrote:
> > My program (which I can't compile
> > yet) wouldn't work without the tail recursion optimisation. The stack
> > would
> > grow unbounded.
>
> This kind of situation is what the require_tail_recursion pragma was
> designed for.
I've searched for this pragma in the documentation of the rotd-2026-02-28
version and on the Mercury web site. It isn't documented.
Volker
More information about the users
mailing list