[void] is always equal only to itself, and [void] is never equal to any other object type. The [void->oncompare] method accepts a void object as a single parameter and compares it to the object. If both objects are of type void, then the method returns zero (0), else it returns negative one (-1).
Variable Name->oncompare(void)
Use the void->onCompare method against [Void].
Code
define fvoid => {return}
local(f = fvoid)
#f->oncompare(void)
Result
0
Use the void->onCompare method against [Void].
Code
local(f = null)
#f->oncompare(void)
Result
-1
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments