Re: [Ecls-list] How to wrap C++ classes using ECLs foreign function interface?

2013-07-17 Thread Dietrich Bollmann
Hi Matt, On Fri, Jul 12, 2013 at 12:24 AM, Matthew Mondor mm_li...@pulsar-zone.net wrote: Perhaps a few reminders, if performance is an issue (it might not matter, depending, and are not only addressed to you, but may also serve in the mail archive under this thread): Thank you very much

Re: [Ecls-list] How to wrap C++ classes using ECLs foreign function interface?

2013-07-17 Thread Matthew Mondor
On Wed, 17 Jul 2013 21:43:00 +0900 Dietrich Bollmann dietr...@formgames.org wrote: - Functions might be faster than methods Something like this?: === definitions === (defun make-cube (key (size 1.0)) (ffi:c-inline (size) (:double) :pointer-void new Cube(#0) :one-liner t)) (defun

[Ecls-list] How to wrap C++ classes using ECLs foreign function interface?

2013-06-06 Thread Dietrich Bollmann
Hi, Is there some example about how to wrap C++ classes with ECLs foreign function interface? How, for example, would I wrap the following simple program? ;; Making a cube of size 2 Cube* cube = new Cube(2.0); ;; Changing its size to 10 cube-setSize(10.0); ;; Getting its size