Partial classes support
Posted: 29 Nov 2022, 05:28
I have been trying to find earlier discussion on this, but could not find but some very old threads:
https://www.autohotkey.com/board/topic/65475-class-definition-syntax-for-autohotkey/page-2
viewtopic.php?t=2208
As far as I can see, partial classes are not currently supported by AHK. Having partial classes (preferably with an explicit keyword distinguishing them from erroneous naming conflicts) would facilitate splitting large classes into different files. I am aware that it is possible to do it as this:
However, this is not exactly elegant as the included files will in themselves not have any reference to the class they are defining.
Are there any plans or chances that partial classes will be implemented?
https://www.autohotkey.com/board/topic/65475-class-definition-syntax-for-autohotkey/page-2
viewtopic.php?t=2208
As far as I can see, partial classes are not currently supported by AHK. Having partial classes (preferably with an explicit keyword distinguishing them from erroneous naming conflicts) would facilitate splitting large classes into different files. I am aware that it is possible to do it as this:
Code: Select all
class Foo {
#Include Bar.ahk
#Include Baz.ahk
}
Are there any plans or chances that partial classes will be implemented?