Wish to introduce Exec(obj).eval() which is safe, unlike eval() function in AHK H.
I suddenly came up with an idea regarding dynamic calling which looks perfect.
Currently, in AHK H, local variables can be changed outside their func with this feature. For example:
Code: Select all
f(txt){
a:=1
,eval(txt)
,MsgBox(a)
}
f('a+=2')
Maybe the limited dynamic features like obj.%prt% at present is almost sufficient, but still leaves some blanks in interacting with users in some situations, such as through inputting strings. The below class Exec(obj) with only one obj parameter would perhaps be a perfect addition to it and be a safe way at the same time:
Code: Select all
obj1:={prpt1:1}
,Exec(obj1).eval('this.prpt1:=5')