Hm - let me describe my problem a bit more. I'm completely new to ecl
(and indeed to common lisp) so i could be missing something obvious in
the way i'm trying to approach this.
I'm trying to convert the following C program:
https://github.com/martindemello/arcccc/blob/master/src/arccc.c into a
library I can call from eql. I'm thinking a C++ class would be the
best way to go about it, because there's a lot of internal state, both
defined in main() and passed around, and stored in static global
variables, and if I want to change the program from "spit out all
solutions" to "act as a generator and return the next solution every
time 'next' is called" it would be neater to encapsulate that state in
a class.
The interface I'll need to the class is pretty simple, though:
solver = new Solver(dictionary);
solver.init(grid)
new_grid = solver.next_solution()
and of course I'll need a way to convert `grid` to and from a lisp
array to a char[][] (which the ECL docs should be able to help with).
So, from the discussion you pointed me to, it looks like a C wrapper
and FFI:C-INLINE is definitely an option. By "Wrap my C++ class in
QObject" do you mean write a new class that inherits from QObject,
holds a pointer to my class, and implements signals and slots that
call its methods?
martin