OwnProps conflicts ObjOwnPropCount - how do you enumerate over all methods?
Posted: 02 Aug 2021, 18:24
i dont expect anyone to really answer other than lexikos, since no one has any idea how objects in v2 work, but who knows maybe a miracle happens and someone can figure it out
Code: Select all
#Requires AutoHotkey v2.0-beta
msgbox("prop count=" ObjOwnPropCount(cls))
for k,v in cls.OwnProps()
msgbox("index=" A_Index "`nk=" k)
msgbox("prop count=" ObjOwnPropCount(cls.prototype))
for k,v in cls.prototype.OwnProps()
msgbox("index=" A_Index "`nk=" k)
instance := cls()
msgbox("prop count=" ObjOwnPropCount(instance.base))
for k,v in instance.base.OwnProps()
msgbox("index=" A_Index "`nk=" k)
class cls
{
one()
{
}
two()
{
}
three()
{
}
}