lisp-interface-library icon indicating copy to clipboard operation
lisp-interface-library copied to clipboard

Using <classy>

Open alt-vena opened this issue 9 years ago • 1 comments

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.

alt-vena avatar Nov 13 '16 01:11 alt-vena

I admit all these issues are out of my mental cache. Example working or non-working code would be useful.

I'm not sure what you want. A variant of the <classy> interface where the class slot is not :allocation :class ? Sure, it could be useful in some cases.

Patches accepted.

fare avatar Nov 13 '16 01:11 fare