[Openmcl-devel] make-method-lambda ?

Pascal Costanza pc at p-cos.net
Tue Sep 9 16:26:18 UTC 2008


why?

On 9 Sep 2008, at 16:19, james anderson wrote:

> i was hoping to avoid define-manipulated-method.
>
> On 2008-09-09, at 09:52 , Pascal Costanza wrote:
>
>>
>> On 9 Sep 2008, at 15:13, james anderson wrote:
>>
>>>> What do you want to achieve? In most cases, there are easier ways
>>>> than make-method-lambda to achieve what you want...
>>>
>>> manipulate the arguments passed to the method.
>>
>>
>> (defmacro define-manipulated-method (name (&rest args) &body body)
>>  (let ((unspecialized-args (extract-lambda-list args)))
>>    `(defmethod ,name ,args
>>       (apply (lambda ,unspecialized-args , at body)
>>         (manipulate-args
>>           (list ,@(loop for arg in unspecialized-args
>>                         unless (member arg lambda-list-keywords)
>>                         collect arg)))))))
>>
>> ?!?
>>
>>
>> Pascal
>>
>> -- 
>> Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
>> Vrije Universiteit Brussel, Programming Technology Lab
>> Pleinlaan 2, B-1050 Brussel, Belgium
>>
>>
>>
>>
>>
>>
>> -- 
>> Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
>> Vrije Universiteit Brussel, Programming Technology Lab
>> Pleinlaan 2, B-1050 Brussel, Belgium
>>
>>
>>
>>
>>
>>
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

-- 
Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel, Programming Technology Lab
Pleinlaan 2, B-1050 Brussel, Belgium









More information about the Openmcl-devel mailing list