Update page 'Future AerScript Versions'
@@ -13,7 +13,7 @@ A right associative \** operator can be added to support exponentiation, along w
|
||||
printf("2 ** 3 ** 2 = %d\n", 2 ** 3 ** 2); // 512
|
||||
|
||||
### Operator overloading
|
||||
It should be possible to redeclare or overload most of the built-in operators available in AerScript. Overloaded operators are functions with special names the keyword operator followed by the symbol for the operator being defined. similar to any other function, an overloaded operator has a return type and a parameter list.
|
||||
It should be possible to redeclare or overload most of the built-in operators available in AerScript. Thus a programmer can use operators with user-defined object types as well. Overloaded operators are functions with special names the keyword operator followed by the symbol for the operator being defined. similar to any other function, an overloaded operator has a return type and a parameter list.
|
||||
|
||||
class Box {
|
||||
public float $breadth;
|
||||
|
||||
Reference in New Issue
Block a user