L9 - what is true?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This code:

boolean(null);   ', ';
boolean(string); ', ';
boolean(integer);', ';
boolean(array);  ', ';
boolean(map);    ', ';

gives:
false, false, false, true, true

This is different from L8. Is this intentional? If so, why?

This has consequences which I think are counterintuitive:

	if(array(1) -> find('whatever'));

This evaluates as true.

- Jussi

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux