2021-04-14: GLOBAL_TAG_TYPES
This is used in place of tags for variable argument functions. For example, ?printf? is defined as:
Using {Float, _}: means that this function can accept a range of Float and _ (normal) variables. But what about Text: or Group: or Menu:? You could write:
To avoid getting tag mismatch warnings when trying to print those variable types, or you can do:
Which is defined in YSI as:
This is used in place of tags for variable argument functions. For example, ?printf? is defined as:
Quote:
native printf(const format[], {Float,_}:...);
Using {Float, _}: means that this function can accept a range of Float and _ (normal) variables. But what about Text: or Group: or Menu:? You could write:
Quote:
native printf(const format[], {Float, Text, Menu, _}:...);
To avoid getting tag mismatch warnings when trying to print those variable types, or you can do:
Quote:
native printf(const format[], GLOBAL_TAG_TYPES:...);
Which is defined in YSI as:
Quote:
{_,Bit,Text,Group,File,Float,Text3D}