Change Method to Function #620
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In AHK, a function is anything callable. A method is a function attached to an object. In short, all methods are functions, but not all functions are methods.
Previously, AHK++ referred to all functions as methods. This PR changes that for both user-facing and internal references wherever the change is non-breaking. Settings have not been renamed as that would be breaking. Some mentions may have been missed and will be cleaned up later.
This also changes the document outline slightly. All functions are now reported as functions instead of methods. This is true even if the function is a method. This may break tools that depended on symbols being reported as methods, but AHK++ is not designed to support those tools, and that behavior was incorrect, so this is not a breaking change.
Really, the only change is that it now says function where it used to say method:
Some themes may have a different icon for functions vs methods, but the Default Dark+ theme does not.