Wish add Props() and objGetPropCount() for the Any type

Discuss the future of the AutoHotkey language
User avatar
V2User
Posts: 195
Joined: 30 Apr 2021, 04:04

Wish add Props() and objGetPropCount() for the Any type

12 Sep 2023, 09:12

Wish add Props() and objGetPropCount() for the Any type.
Typically, obj1.Props() will enum the obj1's own properties as well as its bases's properties which are not overridden. Similarily, objgetPropCount(obj1) will return the count of obj1.Props() enumerated.
Last edited by V2User on 14 Sep 2023, 02:21, edited 2 times in total.
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Wish add Props() and objGetPropCount() for the Any type

12 Sep 2023, 22:51

ObjGetPropCount would not make sense. A value does not have a property count. It would need to sum up the properties of all bases (and the Object itself if that's what it is).

Props or similar is planned but not a priority for me.
User avatar
V2User
Posts: 195
Joined: 30 Apr 2021, 04:04

Re: Wish add Props() and objGetPropCount() for the Any type

13 Sep 2023, 05:37

I didn't express it precisely enough. Thus, I have edited the post a bit more.

Return to “AutoHotkey Development”

Who is online

Users browsing this forum: lmstearn and 122 guests