Ticket #918 (new RFC) — at Initial Version

Opened 12 years ago

Last modified 12 years ago

Change handling of init_class functions

Reported by: NotFound Owned by:
Priority: minor Milestone:
Component: none Version: 1.4.0
Severity: low Keywords:
Cc: Language:
Patch status: Platform:

Description

The init_class functions from pmc and dynpmc are inserted in line into the generated init_class that does internal work. This way exposes undocumented variables to the user init_class, which is confusing.

The attached patch shows the proposed change: put the code in a static function and call that function from the generated init_class.

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.

Change History

Changed 12 years ago by NotFound

Note: See TracTickets for help on using tickets.