JohnOne Posted February 6, 2016 Share Posted February 6, 2016 The question was why does it need to exist, and the short answer is, it does not need to exist. czardas 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
czardas Posted February 6, 2016 Author Share Posted February 6, 2016 (edited) 2 hours ago, LarsJ said: It's your own function. Do you really need an unused parameter? You use only #forceref due to an unused parameter. Actually there's 2 or 3 parameters like this in my project. The parameters get constant heavy duty usage when they appear in the execution string. They do not need to exist, but using them (in my implementation) cuts out about 1000 lines of duplicated code, probably much more than that in the long run. These variables occur in a region of my script called 'Remote Loops'. This region contains functions with one purpose only - to loop recursively. For every loop cycle, we need to execute a line (or two) of code: and that's where the hidden variables come into play. Whether a variable is used, or not, depends on which (calling) function needs access to the shared remote loop region. Instructions are sent to the remote loop by means of these hidden variables. It's an experimental design for reducing bloat. Edited February 6, 2016 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
jchd Posted February 6, 2016 Share Posted February 6, 2016 1 hour ago, JohnOne said: The question was why does it need to exist, and the short answer is, it does not need to exist. Yes it does. Else all scripts using this and that standard include and adhering to recommended coding practices would report warnings. That would cause dozens of complaints a day. Would also make stripping unusable (breaking correct scripts). czardas and JohnOne 2 This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
czardas Posted February 6, 2016 Author Share Posted February 6, 2016 I think jchd just added the long answer to JohnOne's short answer. JohnOne 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
JohnOne Posted February 7, 2016 Share Posted February 7, 2016 Indeed. "Because it would be a script breaking change" is a reason (albeit a poor one) for it to stay, not for it to exist. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
trancexx Posted February 7, 2016 Share Posted February 7, 2016 It wouldn't be script breaking change. What are you talking about. This directive has nothing to do with AutoIt language, nor is used by the canonical interpreter. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
JohnOne Posted February 7, 2016 Share Posted February 7, 2016 I just stupidly assumed that if #something_or_other directive, did not exist, it would cause an error. I'd like to alter my remark to this... "Because it would cause warnings in scite console" might be a reason (albeit a poor one) for it to stay, not for it to exist. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now