Webel IT Australia promotes the amazing Mathematica tool and the powerful Wolfram Language and offers professional Mathematica services for computational computing and data analysis. Our Mathematica
tips, issue tracking, and wishlist is offered here most constructively to help improve the tool and language and support the Mathematica user community.
DISCLAIMER: Wolfram Research does not officially endorse analysis by Webel IT Australia.
The syntax for defining a class method for the user-contributed MTools package for classes and OO in Mathematica is:
MClass.method[arg_] := (* Use arg *);
Where Class
is a user defined MTools class. The method
itself can also accept an OptionsPattern[]
:
MClass.method[arg_, OptionsPattern[]] := (* ... *);
But at the time of writing, no way is known of registering the Options[]
specific to an MTools method. Dr Darren invites your help:
If you know how to achieve Options[]
registration specific to an MTools method by all means do contact me and let me know how.
In any case, this is addressed in the Webel libraries for the Wolfram Language by the HelpO` class/method help registry package in combination with the Webel Options Association the MAll and MOptsSet classes, and encapsulated via the MOpt class.
Visit also: