[closer-devel] Re: layer slots

Pascal Costanza pc at p-cos.net
Thu Nov 29 19:43:44 UTC 2007


On 29 Nov 2007, at 09:35, Attila Lendvai wrote:

>> I don't know which of those comes closer to solving your concrete
>> problem.
>>
>> If none of this does the job, please let me know and I will try to
>> think harder about a better solution...
>
> Pascal, thanks a lot for the exhaustive answer!
>
> i'm sorry to let you know, but at the end i decided not to use
> contextl in verrazano. the rationale is that it gives extra
> dependencies and none of the alternative solutions were seamless
> enough, so i just added the backend parameters by hand. this way the
> resulting code will be more accessible to those who are not familiar
> with contextl and i also felt some early overdesign in the air.
>
> i wanted to have numerous layers like struct-emitting,
> const-char-pointer-as-string, etc... and a backend layer would have
> inherited a number of these. then later on the user could say
> additionally an active and an inactive layer list on top of this that
> is applied after the backend layer was enabled and before the
> generation is started.
>
> and all that while there's only a single cffi backend for verrazano...
> so i decided to simply add an extra first backend parameter to the
> relevant generics and if someone wants to customize the generation
> they can just inherit from a backend and override as necessary.
>
> it doesn't mean that contextl is not useful! but for now i think it
> would be too much in verrazano.

No need to feel sorry. You should of course only use what actually  
contributes to a good solution.

I'd be interested to look at the code once you have it done. It may be  
useful to analyze and see how ContextL could have helped if it had the  
(yet to be found) right features...

Thanks a lot for consideration!


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







More information about the closer-devel mailing list