Menu

#8 mdecl_wrapper additions and args() query

closed
nobody
None
5
2011-03-12
2010-04-21
Anonymous
No

Really like the mdecl_wrapper to assign properties to the declarations.
mdecl_wrapper could be much more useful though if it returns an mdecl_wrapper of the result to access attribute or nest queries.
included is a patched version of mdecl_wrapper that allows queries to be written like this:
a = mb.classes(lambda b: whatever(b)).mem_funs(return_type='void')
> queries the mem_funs of all classes matched
names = a.names.to_list()
> returns a list of all names (nice for debugging)

Additionally if all calldefs would have an arguments() (or .args() to avoid name conflict) that works similarily to classes() or calldefs()

Discussion

  • Roman

    Roman - 2011-02-26

    Sorry, for the late response. The patch looks interesting and useful. If you are still interesting in submitting the patch, I would like to discuss with you how this change influences the class interface.

     
  • Roman

    Roman - 2011-02-26
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.