Overview of Typedefs

ATEasy allows you to give a new name or alias to an existing data type. The definition of an alias to a data type is called Typedef or Type Definition. Typedef is a user-defined data type. Typedefs are useful when you want to create an alias to another data type name..

        For example, you prefer to use the Typedef name Logical for a Bool data type, or the Typedef name Real for a Float data type. You can declare the following Typedefs:

        In the example above, you previously defined a Typedef called Real as a Float data type. You later want to change the Float data type to a Double data type to gain additional precision. Because Real is an alias for Float, all you need to do is change Float to Double in the Typedef of Real, as shown in the illustration below. When you recompile your application, everywhere you used the Typedef Real will now take on the data type of Double.

 

is the icon that shows a Typedef.