Target Language Compiler    

Record Aliases

In TLC it is possible to create what is called an alias to a record. Aliases are similar to pointers to structures in C. You can create multiple aliases to a single record. Modifications to the aliased record are visible to every place which holds an alias.

The following code fragment illustrates the use of aliases.

It is possible to create aliases to records which are not attached to any other records, as in the following example.

Saving this script as alias_func.tlc and invoking it with

produces the command window output

As long as there is some reference to a record through an alias, that record will not be deleted. This allows records to be used as return values from functions.


  Records TLC Files