Lasso Soft Inc. > Home

[ void->oncompare ]

Method

[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).

  • Syntax
Variable Name->oncompare(void)
Examples
  • Beginner

To determine whether a type is equivalent to void:

Use the void->onCompare method against [Void].

Code

define fvoid => {return}
local(f = fvoid)
#f->oncompare(void)

Result

0

To determine whether a type is equivalent to void:

Use the void->onCompare method against [Void].

Code

local(f = null)
#f->oncompare(void)

Result

-1

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft