SomFindSMethodOK

This method finds the method procedure for a static method. Not generally overridden.

For backward compatibility, this method does not take an Environment parameter.


 * Original Class : SOMClass

Syntax
somMethodPtr somFindSMethodOk (SOMClass receiver, somId methodId)

Parameters

 * receiver (SOMClass) : A pointer to a class object.


 * methodId (somId) : A somId representing the name of the desired method.

Return Code

 * rc (somMethodPtr) : This method returns a pointer to the method procedure that supports the specified method for the class.

Remarks
This method performs name-lookup resolution in a similar fashion to somFindMethod and somFindMethodOK, but are restricted to static but is restricted to static methods. See the description of somFindMethod for a discussion of name-lookup method resolution. Because this method is restricted to resolving static methods, its interface is slightly different from the somFindMethod interface; a method procedure pointer is returned when lookup is successful; otherwise NULL is returned.

This method is identical to somFindSMethod, except that an error is raised if the indicated static method is not defined for the receiving class, and execution is halted.

Example Code
See the somFindMethod method example.

Methods

 * somFindMethod
 * somFindMethodOk