Ticket #204 (closed enhancement: fixed)

Opened 5 months ago

Last modified 4 months ago

Enhance Scripting framework to allow more methods to be added to a type.

Reported by: sgtflame Owned by: sgtflame
Priority: minor Milestone: Version 0.6.2
Component: Scripting Version: 0.6.0
Keywords: Cc:

Description

script_type<> needs to have a constructor that takes a pScriptType_type so that more methods can be added to an existing type prior to the script type being finalized.

Attachments

mylyn-context.zip Download (33.7 KB) - added by sgtflame 4 months ago.
mylyn/context/zip

Change History

Changed 4 months ago by sgtflame

mylyn/context/zip

Changed 4 months ago by sgtflame

Attached context. This task is essentially completed, but I'm double checking.

Changed 4 months ago by sgtflame

  • status changed from new to closed
  • resolution set to fixed

One caveat - script_type::attach() had to be made public, but should only be used when this new constructor is used.

Possibly eventually we should consider making a sub-class with this constructor with activate() being made public. This will make it so that if you don't use this new constructor, the activate() method is protected and can't be used incorrectly.

Note: See TracTickets for help on using tickets.