What is the meaning of this declaration?
Monkey Forums/Monkey Beginners/What is the meaning of this declaration?
| ||
Hi, I was checking the Warpy's bezier code : http://www.monkeycoder.co.nz/bananas/warpy/bezier/bezier.monkey And i wondered myself that was the use of this kind of declaration? Field points#[] Field inc# or Local dx#=points[6]-points[0] The use of "#" is for a no type definition? |
| ||
# = Shorthand for Float % = Shorthand for Int $ = Shorthand for String ? = Shorthand for Bool So Field points#[] Field inc# is the same as writing Field points:Float[] FIeld inc:Float I strongly recommend against writing the former, as the shorthand makes it less readable in my opinion. |
| ||
Thanks for explanation. I strongly recommend against writing the former, as the shorthand makes it less readable in my opinion. I'm agree with you. Futhermore as a monkey newbie, i prefer kept a code fully detailed to not be confused if need to re-check my code later. |