Patent ID: 7669191

Claim:
A method for implementing an object in a memory arrangement of a computing system, comprising: inputting program source code to a processor executing a compiler; wherein the program source code includes a main object of a class, the class having a variant type and the variant type providing at least two different data types, wherein at least one of the data types is a linear array of objects of one of the data types, the class including a first method for putting a variant object of the variant type in the main object and a second method for getting a variant object of the variant type from the main object; wherein for each method for getting a variant object from the main object, the program source code includes application of a visitor method, the visitor method including a respective operator for each of the different data types; wherein the program source code includes at least one invocation of the first method for putting at least two variant objects of different variant types into the main object and invocations of the second method for getting variant objects from the main object; wherein one of the variant objects put into the main object is a linear array of variant types; wherein the at least one invocation of the first method further includes a plurality of invocations of the first method that put variant objects of one or more of the variant types into the linear array and at least one invocation of the first method that puts a linear array variant object into the linear array; compiling the program source code, wherein for each invocation of the second method executable code is generated that executes the one of the operators corresponding to the data type of a referenced variant object of the main object; and storing the executable code, including the variant object, in the memory arrangement.