The group command
Richard Gaskin
ambassador at fourthworld.com
Mon Feb 21 10:19:19 EST 2011
On 2/21/11 7:05 AM, Richard Gaskin wrote:
> I guess the only upside here is that so far it appears as though "it" is
> indeed reliable as long as you use "create", and workarounds are only
> needed in some cases where you create objects by other means.
I stand corrected, at least in part: while looking through the RQCC for
some other issues, I came across an old report which describes a case in
which the "create" command doesn't use "it" to store a reference to the
created object - when using "create folder":
<http://quality.runrev.com/qacenter/show_bug.cgi?id=3700>
So on the one hand it seems that "it" is reliable when using "create"
for LC objects, but on the other hand one must remember that when
creating file system objects the same does not apply.
This only further strengthens the argument to stop overloading "it" as a
catch-all for every little thing, and instead adopt a LastError function
for errors, freeing "it" up to be used only for data:
<http://quality.runrev.com/qacenter/show_bug.cgi?id=9408>
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
LiveCode Journal blog: http://LiveCodejournal.com/blog.irv
More information about the use-livecode
mailing list