2 ms·
Given that you can define your own custom method dispatch mechanisms in CLOS I'm pretty sure you could do something like this - you'd have to define the return
by arethuza 12y ago
Given that you can define your own custom method dispatch mechanisms in CLOS I'm pretty sure you could do something like this - you'd have to define the return type of each method somehow (can you use ftype with CLOS methods?) and have a way of specifying the return type you want back - but none of that sounds hugely difficult.
Mind you - its 20 years since I was paid to write Lisp/CLOS so take this with a grain of salt :-)