Re: [pygccxml-development] Member variables and their access type?
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-10-04 09:35:54
|
Roman Yakovenko wrote: >> I just noticed a slight problem with Py++. I tried to ignore private >> member variables > > Py++ should ignore them by default, so I don't understand what you are > trying to do. Well, don't worry, I guess this is just an "artifact" of using pypp_api... ;) (I was just trying to get rid of some warnings) >> but the class variable_t doesn't have a property >> "access_type". It seems that property is only available on classes >> derived from member_calldef_t. > > Right, because I don't have global_variable_t and member_variable_t classes > >> So how can I check the access type of a member variable? > > mem_var.parent.find_out_member_access_type( mem_var ) Is this going to change in the future (so that there's a property access_type)? I think it's not intuitive that member variables have to be treated differently than member functions (after all, they are both members and the access type is a property of a member). - Matthias - |