[plt-scheme] Inlining & Modules

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Sep 2 21:19:19 EDT 2002

At Mon, 2 Sep 2002 09:46:54 -0400, Brian Campbell wrote:
> If I have two modules, where one has a loop that calls a small, 
> leaf function that's defined in the other, will the leaf 
> function be inlined if I compile each separately with mzc -e?

No, not currently.

> If not, is there some way to force it to be inlined?

You can define a macro instead of a procedure. (Arguably an abuse of
macros, but it will get you around the compiler's limitations for now.)

Matthew




Posted on the users mailing list.