I have a short question regarding how the interface is supposed to be implemented. I usually define my interfaces in two files. Say some interface in file car.lisp with implementation in car-implementation.lisp. I want to have the interface bound to the class car which I have until now typically defined in car.lisp. On compiling I get an error that the class is not defined yet. I could move the class definition to a third file (in car-implementation.lisp causes circularity) but this seems a bit superfluous. Any ideas? Also would it not make sense to implement as parametric. One could then bind it to a variable and include it in the superinterface list as a mixin of sorts.
I have a short question regarding how the interface is supposed to be implemented. I usually define my interfaces in two files. Say some interface in file car.lisp with implementation in car-implementation.lisp. I want to have the interface bound to the class car which I have until now typically defined in car.lisp. On compiling I get an error that the class is not defined yet. I could move the class definition to a third file (in car-implementation.lisp causes circularity) but this seems a bit superfluous. Any ideas? Also would it not make sense to implement as parametric. One could then bind it to a variable and include it in the superinterface list as a mixin of sorts.