Re: v1.1.16 alpha - Properties
Posted: 08 Aug 2014, 03:40
But how? Maybe I have a mental block.
Code: Select all
#NoEnv
Msgbox, 0, IsObject(Prop), % IsObject(Prop := Dummy.Property) ; shows 1
MsgBox, 0, Prop.Get(), % Prop.Get() ; shows ""
MsgBox, 0, Prop.Get, % Prop.Get ; shows ""
MsgBox, 0, Prop, % Prop ; shows ""
For Key In Prop
MsgBox, 0, Key %A_Index%, %Key% ; no MsgBox
ExitApp
Class Dummy {
Property {
Get {
Return "Hello!"
}
Set {
Return "Hello!"
}
}
}