[closer-devel] Reflective Layer Activation in ContextL

Pascal Costanza pc at p-cos.net
Sun Oct 22 12:56:05 UTC 2006


On 20 Oct 2006, at 00:03, Attila Lendvai wrote:

> as i understand subjects in slate they are a way for the user to  
> override very specific situations. just think of the subject being  
> an implicit last argument in a message send: with multiple dispatch  
> this means that you can override one single signature by  
> specializing on the last implicit arg (the subject), whereas with  
> layers (first implicit arg) you can override an entire bunch of  
> methods.

No, in ContextL it's actually the same as in Slate in this regard:  
Although the layer parameter is the first in the internal arguments  
list, in the argument precedence order it's the last. So the layer is  
always the least specific argument, whenever the other required  
arguments lead to an unambiguous situation, the layer won't play a  
role in determining the most specific method.

> PS: i've just pushed ContextL integration for defclass-star by  
> defining a deflayer*

Nice, thanks.


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




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/closer-devel/attachments/20061022/4ede7930/attachment.html>


More information about the closer-devel mailing list