Ticket #918 (new RFC) — at Version 1

Opened 12 years ago

Last modified 12 years ago

Change handling of class_init functions

Reported by: NotFound Owned by:
Priority: minor Milestone:
Component: none Version: 1.4.0
Severity: low Keywords:
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.

Change History

Changed 12 years ago by NotFound

Changed 12 years ago by NotFound

  • description modified (diff)
  • summary changed from Change handling of init_class functions to Change handling of class_init functions
Note: See TracTickets for help on using tickets.