Extend integer?

Discussion of Common Lisp
wvxvw
Posts: 127
Joined: Sat Mar 26, 2011 6:23 am

Re: Extend integer?

Post by wvxvw » Mon Jul 11, 2011 8:23 am

Well, I thought that type is the way to define arbitrary predicate for checking the function argument. That's why I've got confused. But it's really over my head now, thank you for the link nevertheless.

gugamilare
Posts: 406
Joined: Sat Mar 07, 2009 6:17 pm
Location: Brazil
Contact:

Re: Extend integer?

Post by gugamilare » Mon Jul 11, 2011 8:54 am

Ramarren wrote:Well, there is something called filtered-dispatch, which allows dispatching on arbitrary predicates, but I am not sure how widely it is used, if at all.
Cool 8-)

I just realized that CFFI uses something very similar to filtered-dispatch. I guess this could also be used to make those defoptimizer's of SBCL portable (unless those which use SBCL's internals, of course).

Post Reply