[a133] ComValue dispatches to Prototype properties Topic is solved

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

[a133] ComValue dispatches to Prototype properties

Post by swagfag » 25 Apr 2021, 07:19

Changed ComValue, ComValueRef and ComObjArray to dispatch via prototype properties, allowing the script to inspect or extend them.
@lexikos what exactly is this change all about? how did it use to work previously? what does it enable now?

lexikos
Posts: 9589
Joined: 30 Sep 2013, 04:07
Contact:

Re: [a133] ComValue dispatches to Prototype properties  Topic is solved

Post by lexikos » 25 Apr 2021, 20:45

As I said, it enables the script to inspect or extend the properties of those objects, via their prototype.

COM object wrappers were implemented as they are in v1, by multiple checks against the property or method name and directly executing the corresponding code. You could not:
  • Check for the existence of a property or method.
  • Get a reference to a method function or property getter/setter (they didn't even exist).
  • Redefine a property or define a new property by modifying the prototype.
  • Invoke the .base property (I think).

Post Reply

Return to “Ask for Help (v2)”