This method adds a new dynamic instance method to a class. Dynamic methods are not part of the declared interface to a class of objects, and are therefore not supported by implementation and usage bindings. Instead, dynamic methods provide a way to dynamically add new methods to a class of objects during execution. SOM provides no standard protocol for informing a user of the existence of dynamic methods and the arguments they take. Dynamic methods must be invoked using name-lookup or dispatch resolution.
Note: For backward compatibility, this method does not take an Environment parameter.
SOMClass receiver;
somId methodId;
somId methodDescriptor;
somMethodPtr method;
somMethodPtr applyStub;
somAddDynamicMethod(receiver, methodId, methodDescriptor,
method, applyStub);