In traditional programming language, we have "procedure" (that perform some process and gives no output) and "function" (like a procedure but returns a value and syntaxtically means the value it returns.) In BEE, "functions" are more like the traditional "procedure" except that it can return a value via a special variable. It cannot be taken as a value in the way of, say, C (e.g. a = func(b) + 2;).
However, another feature of BEE called "Conversion" is closer to (but not the same as) the traditional "function". You still cannot put a BEE Conversion in place of a value. But you can specify a value together with a "Conversion", which will take the value and subject it to a "conversion process" before the value is being used.
There are two types of Conversions: Intrinsic and User-defined, and a set of rules to govern how the string and array interchange. Details can be found in BEE Script User Reference - PDF.
|