On Jun 14, 2011, at 19:30 , Martin Simmons wrote:

>>>>>> On Tue, 14 Jun 2011 09:32:50 -0400, Daniel Weinreb said:
>> 
>> But Fare pointed out to me that being able to add generic functions
>> specialized on these would be a good thing.  This would mean making them use
>> CLOS not for encapsulation but for genericty.
> 
> Use can specialize methods on defstruct classes too, so they don't have to be
> CLOS instances defined with defclass.

Built-in classes too[1], which means that you can have methods specialized on 
(e.g.) single-float and double-float, fixnum and bignum, list and vector, etc. 

[1] I think, but I cannot find the relevant reference just now.
_______________________________________________
pro mailing list
pro@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/pro

Reply via email to