SOM manipulations using somId's

A somId is similar to a number that represents a zero-terminated string. A somId is used in SOM to identify method names, class names, and so forth. For example, many of the SOM methods that take a method or class name as a parameter require a value of type somId rather than string. All SOM manipulations using somIds are case insensitive, although the original case of the string is preserved.

During its first use with any of the following functions, a somId is automatically converted to an internal representation (registered). Because the representation of a somId changes, a special SOM type (somId) is provided for this purpose. Names and the corresponding somId can be declared at compile time, as follows:

   string example = "exampleMethodName";
   somId exampleId = &example;

or a somId can be generated at run time, as follows:

   somId myMethodId;
   myMethodId = somIdFromString("exampleMethodName");

SOM provides the following functions that generate or use a somId: