Ticket #918 (closed cage: done)
Change handling of class_init functions
Reported by: | NotFound | Owned by: | NotFound |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | pmc2c | Version: | 1.4.0 |
Severity: | low | Keywords: | deprecate |
Cc: | Language: | ||
Patch status: | Platform: |
Description (last modified by NotFound) (diff)
The class_init functions from pmc and dynpmc are inserted in line into the generated class+init that does internal work. This way exposes undocumented variables to the user class_init, which is confusing.
The attached patch shows the proposed change: put the code in a static function and call that function from the generated class_init.
The only problem is that dynpmc from external modules or languages can still be using the now unneeded 'pass' variable, thus that change may need a deprecation cycle.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.