Even now, it's not uncommon to define small frequently used functions as inline in C/C++. It has the same effect (the code is expanded inline at compile time) as an alternative to allocating a new stack frame and going through the whole call/return process. Regardless of whether or not this was the motivation for FM functions, it is a benefit.

====
Gregory Woodhouse
[EMAIL PROTECTED]
On May 16, 2005, at 8:23 PM, Greg Kreis wrote:

The FM functions are evaluated and then used to drive the generation of code, so there isn't an API available.  A classic approach would have APIs and pass the parameters to them, but back in the day, code that was executed was many times faster than running a routine, if you could squeeze it all in one or two lines.   I don't know that performance was really the reason.  There was also the benefit of the code being stored in the DD for reuse through execution.

Reply via email to