This routine associates an Euphoria function as a handler for assigning data to the data type. All type checking, and actual storing of the data is done with the routine id given.
See Also: DataType, DataTypeID, EndDataType, NoPointer, Retrival, VarFree, VarInit
The Data Type system is setup just like the Class definition system, in where you have a DataType() block much like a for loop, if elsif end if, while loop, etc etc. You start a DataType block with this, by given it a name, that can be later refrenced to when a error occurs. Like with Classes, Data Types cannot be nested. This is subject to change, to support Structures.
See Also: Assignment, DataTypeID, EndDataType, NoPointer, Retrival, VarFree, VarInit
Since Most declorations in this are procedures, you can use DataTypeID() to retrive the ID for use with the DataType system. If you do not have the ID, you cannot use it. This should generally be declared as a global constant, so that any file in your program can use it, especially if the Data Type is declared in a seperate library.
See Also: Assignment, DataType, EndDataType, NoPointer, Retrival, VarFree, VarInit
This pretty much closes the Data Type Definition block, and should be called when you are done with the data type definition.
See Also: Assignment, DataType, DataTypeID, NoPointer, Retrival, VarFree, VarInit
This is mainly here, so that you can prevent retrival of the Pointer to the data. This may and may not be useful, but as demonstrated with the STRING data type, it can be useful, since the memory address to the string can be used by other things, such a External Libraries.
See Also: Assignment, DataType, DataTypeID, EndDataType, Retrival, VarFree, VarInit
This routine associates an Euphoria functon as a handler for retriving data from the data type.
See Also: Assignment, DataType, DataTypeID, EndDataType, NoPointer, VarFree, VarInit
Much like with Memory, you have to free it to return it to the system for future use, this allows you to write a routine to associate for a data type, to do any cleanup that may or may not be needed.
See Also: Assignment, DataType, DataTypeID, EndDataType, NoPointer, Retrival, VarInit
This routine associates an Euphoria function as a handler to initalize the data type, for future usage by the system.
See Also: Assignment, DataType, DataTypeID, EndDataType, NoPointer, Retrival, VarFree