Jump to content

Why #forceref?


czardas
 Share

Recommended Posts

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 by czardas
Link to comment
Share on other sites

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).

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 here
RegExp tutorial: enough to get started
PCRE 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...