Interfaces Topic is solved
-
- Posts: 9
- Joined: 02 Dec 2021, 22:29
- Contact:
Interfaces
Does AHK allow you to implement interfaces like in Java or Python? I took a look at COM thinking it might be related, but did not really understand it. Can someone point me in the right direction?
Re: Interfaces
You can make a GUI if that is what you need. Gui
-
- Posts: 9
- Joined: 02 Dec 2021, 22:29
- Contact:
Re: Interfaces
Maybe I lack experience with GUIs, but they don't seem to serve my intent here. I want to abstract a couple classes that are quite similar in concept but not in their implementation, and an interface should do this pretty well.
Re: Interfaces
OK. I do not know how to use a GUI to abstract classes, but someone else here who uses classes more may know.
Re: Interfaces Topic is solved
there's no native support for interfaces. u can write ahk classes behaving as such, but the burden is entirely on u to ensure they work as advertised, ie the runtime won't automatically check and enforce constraints for u
u can write clientcode that would do that(in fact for a bigger project ull probably have to either way, otherwise gl maintaining it) but thats still code youll have to write urself. it would be easier to do this in v2 though(more introspection capabilities, saner object model)
u can write clientcode that would do that(in fact for a bigger project ull probably have to either way, otherwise gl maintaining it) but thats still code youll have to write urself. it would be easier to do this in v2 though(more introspection capabilities, saner object model)