terminology: objects/classes: keywords

Get help with using AutoHotkey and its commands and hotkeys
User avatar
jeeswg
Posts: 6904
Joined: 19 Dec 2016, 01:58
Location: UK

terminology: objects/classes: keywords

26 Jul 2019, 13:28

- Following on from this post re. 'this':
jeeswg's object classes tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=54588&p=285624#p285624

- Are 'base'/'class'/'this' keywords? What is the correct term?
- Also, what do you call '[]'/'{}'?
- And where are they introduced in the documentation, and/or where are the best examples in the documentation.
- I'm trying to collect any info about object 'keywords' other than operators/function names. Thanks.

BASE [USING BASE IN A STAND-ALONE WAY]
[THIS SHOULD PROBABLY APPEAR IN THE INDEX E.G. BASE (KEYWORD)]
Objects - Definition & Usage | AutoHotkey
https://www.autohotkey.com/docs/Objects.htm
Inside a method, the pseudo-keyword base can be used to access the super-class versions of methods or properties which are overridden in a derived class.
CLASS
[THE INDEX ENTRY POINTS HERE]
Objects - Definition & Usage | AutoHotkey
https://www.autohotkey.com/docs/Objects.htm
At its root, a "class" is a set or category of things having some property or attribute in common. Since a base or prototype object defines properties and behaviour for set of objects, it can also be called a class object. For convenience, base objects can be defined using the "class" keyword as shown below:
THIS
[IS THERE A GOOD ONE PARAGRAPH DESCRIPTION FOR THE INDEX]
- A slightly cryptic reference to 'this':
Objects - Definition & Usage | AutoHotkey
https://www.autohotkey.com/docs/Objects.htm
When thing.test() is called, thing is automatically inserted at the beginning of the parameter list.
- On that page, see also, two examples: this.ptr and this.RGB.

USING [] AND {}
- Simple examples:
Objects - Definition & Usage | AutoHotkey
https://www.autohotkey.com/docs/Objects.htm#Usage_Simple_Arrays
Objects - Definition & Usage | AutoHotkey
https://www.autohotkey.com/docs/Objects.htm#Usage_Associative_Arrays
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot] and 254 guests