GEOS Programming: 4.2 Using Classes and Objects: Non-relocatable Data

Up: GEOS SDK TechDocs | Up | Prev: 4.1 Defining a New Class or Subclass | Next: 4.3 Defining Methods
 @noreloc

To force an instance data field which would normally be relocatable (e.g., an optr) to not be relocatable, use the @noreloc keyword. Use this keyword together with the name of the field to be marked non-relocatable directly after defining the instance field itself as shown in Use of the @noreloc Keyword .

Code Display 5-13 Use of the @noreloc Keyword

	@instance optr MCI_ruler;				/* Normally MCI_ruler would be reloc... */
	@noreloc MCI_ruler;				/* ...but now it isn't. */

Up: GEOS SDK TechDocs | Up | Prev: 4.1 Defining a New Class or Subclass | Next: 4.3 Defining Methods