Confused as to how generate-gl-function works

Bart Botta 00003b at gmail.com
Wed Oct 16 12:56:59 UTC 2013


On Wed, Oct 16, 2013 at 6:45 AM, Chris Bagley <chris.bagley at gmail.com> wrote:
> Or is it that once the lambda is compiled, it replaces the version with
> generate-gl-function in it? Does that mean that the wrapper functions are
> compiled on first call?

Right, the call to COMPILE replaces the function with the result of
compiling the LAMBDA, so a specialized wrapper is compiled when it is
called. If I remember correctly, there is also a commented out version
that uses a closure instead, if runtime compilation is a problem.



More information about the cl-opengl-devel mailing list