[plt-scheme] Inlined Functions

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Aug 15 12:36:57 EDT 2003

> At 14 Aug 2003 13:53:05 +0000, Paulo Jorge de Oliveira Cantante de Matos wrote:
> > Is it possible to say mzscheme that a function in a module should
> > be inlined?
> No.
> If I really wanted a function inlined with MzScheme, then I'd use a
> macro, but others on this list will remind you that it's an abuse of
> macros to do the compiler's job...

But the abuse is good enough...  I have a `defsubst' thing in Swindle
that can be used as a shorter function-definition-like form, but it
really defines a macro.  This made it convenient to make things a bit
better by simple replacing `define's by `defsubst's.

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.