inconsistencies in treatment of empty properties

dunbarx at aol.com dunbarx at aol.com
Fri May 13 10:51:36 EDT 2016


Hi.


I tried a few variations of these in 6.9. Never needed an explicit "is true". No errors or failures.


Craig Newman



-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, May 11, 2016 1:14 pm
Subject: inconsistencies in treatment of empty properties

It's taken a while to figure out what was bugging me on this.

As near as I can tell, there is an inconsistency in how unset custom
properties get treated.

I don't have this nailed down yet, but I have had expressions like

"if the ckAlwNul of the target then"


cause handlers to bomb out without throwing an error.  I fixed one of these
this morning by adding an "is true".

And then, about ten lines down, identical code worked just fine, with the
if stepping to else.


It seems to me that referencing an unset property should consistently
either throw an error, or return empty as the result.
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list