Numeric and Object Variables In order to simplify manipulation with numbers and objects, it is possible to define both numeric and object variables by means of the num and obj keywords:Both in numeric and object expressions, basic operators as +, -, * and parenthesis are allowed. Numeric constant PI is also defined. Operations between numbers and objects are not defined. It is not possible to define an object variable without initialization.
- Numeric variables
num radius; radius = numericExpression; num radius = numericExpression;- Numeric variables
obj sphereA = objectExpression; sphereA = objectExpression;
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de