Re: [pygccxml-development] Member variables and their access type?
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-10-04 12:15:48
|
Roman Yakovenko wrote: >> >> 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). > > Done Thanks! (this reduced the number of warnings from 511 to 389! :) After updating I noticed the modification from r616 that the _set_arguments() method was commented out which broke the function transformer unit test. What's the reason why arguments should not be set? _get_arguments() still returns the internal list, so the class isn't really protected from being modified. I'm using this as a workaround now, but obviously I'm not supposed to change the list...? - Matthias - |