[closer-devel] Re: layer slots

Attila Lendvai attila.lendvai at gmail.com
Thu Nov 29 08:35:54 UTC 2007


> 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.

-- 
 attila



More information about the closer-devel mailing list