RATS 10.1
RATS 10.1

Instructions /

NEWTYPE Instruction

Home Page

← Previous Next →

NEWTYPE  newtype  datatype

NEWTYPE allows you to define your own type name as shorthand for a more complicated data type.


Parameters

newtype

The identifier that you want to use as shorthand for a more complicated data type. Note that, unlike standard RATS data types, you need to use the entire name, not just the first three letters.

datatype

The data type that newtype can now be used to represent.

Example

This creates the type name GARCHSwitch to represent a function of an INTEGER that returns a VECTOR.

 

new GARCHSwitch function[vector](integer)

declare GARCHSwitch msgarchfnc

 

 


Copyright © 2025 Thomas A. Doan