Syntax
Line 7: | Line 7: | ||
*SHORT - values from -32768 to 32768 | *SHORT - values from -32768 to 32768 | ||
*INT - values from -2,147,483,648 to +2,147,483,647 | *INT - values from -2,147,483,648 to +2,147,483,647 | ||
− | *FLOAT - values from | + | *FLOAT - values from -3.402822655e+38 to +3.402822655e+38 |
− | *DOUBLE - values from | + | *DOUBLE - values from tiny to huge |
*VAR - any type of davinci variable (including arrays, strings and various other data types) | *VAR - any type of davinci variable (including arrays, strings and various other data types) | ||
*STRUCT - a davinci structure containing the specified elements | *STRUCT - a davinci structure containing the specified elements |
Revision as of 17:05, 6 March 2006
Description Syntax is an important part of using davinci and this page is desined to give the user a better understanding of how to properly input data into various types of functions. There are two main ways to pass information to a function, explicitly or by an ordered list of unnamed arguments or any combination of either.
In the explicit definition of inputs, the variable name will appear and be followed by the type of data it accepts. For example: function(data = VAR, name = STRING )
For example: function($1 = VAR, $2 = STRING )
By allowing some inputs to be optional, davinci has the ability to have preset values that the user doesn't need to enter for the function to work. A good example of this usage is assuming a null value in functions like thm.deplaid. Optional inputs are enclosed by square brackets ( [ ] ) and defined as ususal.
function(data = VAR, [ ignore = FLOAT ]) function($1 = VAR, [ $2 = FLOAT ])
|
Wiki Navigation Bar Contents
Contact Developers
All other topics
Last Updated: Feb-2011
More News
|