Re: [Fwd: [pygccxml-development] Updated status]
Brought to you by:
mbaas,
roman_yakovenko
From: Allen B. <al...@vr...> - 2006-03-07 23:11:18
|
Roman Yakovenko wrote: >On 3/6/06, Allen Bierbaum <al...@vr...> wrote: > > >>A apologize in advance, this e-mail is going to be a little random >>because it is based on my notes from this afternoon. I started trying >>to move the pypp_api interface over the the new codebase and these are >>the things I have run into right away. >> >>- Calling parser changed a bit. >> >>There seems to be a new interface to calling the project parser. I >>think I just need to add a decl wrapper factory but I am not for sure. >>Roman? >> >> > >Yes > > > >>- How am I supposed to use the decl_wrappers? >> >>I am trying to parse with the project reader and then I was expecting >>that the returned decls would actually be the wrappers/decorators for >>the decls. Is this how it is supposed to work? >> >> > >Yes. > > So this may have been where I got off track. I ran my existing pypp_api code and where it gets the decls from the parser the class that is returned is not a wrapper. If I remember correctly it was just a namespace decl. I will check this again tonight against the latest codebase and let you know if things are working correctly. >Short answer: because when user thinks about call policies he does not think >about code generation. In future I will remove "code generation >functionality" from >call policies. > > Okay, I guess that makes sense but the previous way of just importing the "decorating" aspects of call policies seemed to work pretty well. The user only thought of the call policies as decoration but behind the scenes he was giving you the exact classes that you needed to do the code generation. This still seems like a valid separation and it seems like it would be the most simple design. >>- Decl wrappers don't seem to support everything I needed/added with the >>decorators. >> >>Specifically, how can I add custom creators? In my flag-based version I >>could add a list of code creators that would automatically be added on >>when the creator class build the code creators for a decl. >> >> > >First of all I missed this future. Sorry. I will add the functionality >to decl wrappers. > > Thanks. -Allen |