[OT] Why would it be a pain?

Stephen Barncard stephenREVOLUTION at barncard.com
Thu Jun 22 13:28:19 EDT 2006


DANGER WILL ROBINSON:
I'm sure we don't want IT to be a global - ever!!!
it's only supposed to be a local variable with a very short life, one 
or two lines of code at the most. It's used too much for too many 
things for any more.....

"it" is local as long as the script is running.

do this instead, on one line:

answer file "hi!";put it

(in some earlier versions of Rev, an empty prompt will make the dialog wonky.)


>My beef with IT is that IT isn't defined as a global variable by default. For
>example, if you need a quick file path and type ...
>     answer file ""
>... you can't get your path unless you previously did this ...
>     global it
>In HC that was done by default which I found to be very handy. And that is
>all I have to say about IT.
>
>In a message dated 6/22/06 9:15:51 AM,
>use-revolution-request at lists.runrev.com writes:
>>
>>  Before you complete the ebook check in on BZ#3700:
>>  <http://support.runrev.com/bugdatabase/show_bug.cgi?id=3700>
>>
>>  The enhancement request to have "it" return the full path when creating
>>  a folder has been confirmed, which suggests it may be implemented at
>>  some point.
>>
>>  Richmond's perception about the pattern is useful, and it seems that at
>>  least Oliver at RunRev agrees.
>>
>>  I imagine it would be relatively simple to implement -- I wonder how
>>  hard it would be to get that into the next build....
>  >
>>

-- 
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -



More information about the use-livecode mailing list