OML data types

Submitted by Phaul on Wed, 2006-07-19 12:29.
::
There are 5 data types in the present OML implementation : integer, double, string, nil, list. Integers can be entered as decimal numbers like 1234, 2 etc. and in hexadecimal form like 0x00ff00ff. The latter is usefull for colour values (in RGB). There is nothing special about doubles. Strings are a bit restricted, maximum string length is 255 characters. It can be entered as "this is a string". Special characters could be used with \ escaping sequences. Check printf manual to find out how it works. There is only one value of the type nil. This is also called nil - but don't mix the value with the data type. Nil is used to indicate false logical value or error occurance. Lists hold values of the previous - and even a list can be a member of a list, they can strech to any size - at run time -, and a single list can hold any kind of value simultaneously. You must note though that there is no empty list, all list holds at least one value.