Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-04-01 Thread Nikodemus Siivola
On 1 April 2012 02:11, Luís Oliveira wrote: > The code is at: > > > The test-case is simply compiling cl-opengl. SBCL will exhaust the > heap while attempting to compile gl/funcs.lisp which contains about > 2000 usages of DEF

Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-03-31 Thread Luís Oliveira
On Sat, Mar 31, 2012 at 5:02 PM, Nikodemus Siivola wrote: > Can you point me at right spot in cl-opengl sources, and provide a > test-case. I think I have an idea... The code is at: The test-case is simply compiling cl-openg

Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-03-31 Thread Jocelyn Fréchot
On 31/03/2012 17:42, Luís Oliveira wrote: I tried it out as well and got similar results. I also tried using load-time-value for the pointer cache in the hopes that making the DEFUN a top-level form would appease SBCL but that help too much. Have you tried using a less smart compiler such as CC

Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-03-31 Thread Nikodemus Siivola
On 31 March 2012 18:42, Luís Oliveira wrote: > I tried it out as well and got similar results. I also tried using > load-time-value for the pointer cache in the hopes that making the DEFUN a > top-level form would appease SBCL but that help too much. > > Have you tried using a less smart compiler

Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-03-31 Thread Luís Oliveira
Hello Jocelyn, I tried it out as well and got similar results. I also tried using load-time-value for the pointer cache in the hopes that making the DEFUN a top-level form would appease SBCL but that help too much. Have you tried using a less smart compiler such as CCL ou CLISP? -- Luís Oliveir

Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-03-17 Thread Jocelyn Fréchot
On 17/03/2012 11:01, Luís Oliveira wrote: At the end of gl/bindings.lisp there's an alternative implementation of DEFGLEXTFUN that doesn't call compile or redefine anything. Does that work better for you? I tried this version: (defmacro defglextfun ((cname lname) return-type &body args) (al

Re: [cl-opengl-devel] Extension functions re-defining themselves

2012-03-17 Thread Luís Oliveira
On Fri, Mar 16, 2012 at 9:39 PM, Jocelyn Fréchot wrote: > I’d like to report the folling issue I bumped into: in > the cl-opengl-bindings package, extension functions defined with > defglextfun will re-define themselves the first time they are called. > This is somewhat an unexpected and potential