Marco Antoniotti
5/20/2016 1:49:00 PM
On Friday, May 20, 2016 at 1:27:28 PM UTC+2, Elias Mårtenson wrote:
> On Friday, 20 May 2016 17:06:43 UTC+8, Jim Newton wrote:
> > SBCL warns me that _IGNORE is defined but never used. However, it looks to me like I've declared it as ignore. Is this an sbcl bug, or do I really need to use 7 different variables _ignore1, _ignore2 etc, and marked all 6 as ignore in the declaration?
> >
> > (destructuring-bind (_ignore _ignore ; let arglist
> > (_ignore _ignore ; typecase var
> > _ignore ; case1
> > _ignore ; case2
> > (type3 &rest _ignore ))) expanded
> > (declare (ignore _ignore))
> > type3)
>
> You can always use a macro to do this for you. One way is to use OPTIMA:
>
> (optima:multiple-value-match (values 1 2 3)
> ((_ _ v) (print v)))
>
> Prints:
>
> 3
Or, shameless plug, you can use something customizable like CL-UNIFICATION.
Cheers
--
MA