> i will describe my thoughts about that,
> 
> i read the
> 
> http://gambasdoc.org/help/cat/constants
> 
> and i saw that a TRUE or FALSE value is a Language constant.
> Also NULL is a Language constant!
> 
> So i expected from IsObject() to return FALSE when it is feed with
> constants as argument.
> 
> So
> PRINT IsObject(TRUE)       'False
> PRINT IsObject(FALSE)      'False
> PRINT IsObject(0)          'False
> PRINT IsObject("a string") 'False
> 
> But
> PRINT IsObject(NULL)       'True
> 
> Some more thoughts..
> In wiki says that NULL is a void string
> and indeed...
> 
> PRINT IsObject("")    'True
> 
> 1) But what if someone want to check a void string?
> 2) How a
>    PRINT IsObject("a string") 'is False
>    and a
>    PRINT IsObject("") 'is not False
> 
> both are strings and not Objects.
> 

In Gambas, NULL and the void string are the same thing.

-- 
Benoît Minisini

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to