[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: define-inlinable bug
From: |
Andy Wingo |
Subject: |
Re: define-inlinable bug |
Date: |
Wed, 13 Jul 2011 10:30:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hi,
On Mon 11 Jul 2011 17:13, address@hidden (Ludovic Courtès) writes:
> BT Templeton <address@hidden> skribis:
>
>> `Define-inlinable' doesn't appear to work with mutually recursive
>> functions. Attempting to evaluate both of the following procedure
>> definitions results in a stack overflow.
>
> Indeed, mutually recursive functions cannot be inlined with this trivial
> macro.
>
> I’m not sure there’s much we can do. Maybe we could at least document it?
You can use fluid-let-syntax. See Dybvig's example here:
http://www.scheme.com/csug8/syntax.html#./syntax:h1
It's nonstandard but our psyntax does have it I think.
Andy
--
http://wingolog.org/