forum > Haxe runtime proxy
-
Rodin Jul 31 at 09:32
I am creating a DSL using hscript and am looking for a way to handle an expression like
item.label
where name is a dynamic field unknown at compile time. Now, I can implement Dynamic<MyProxy> and implement the resolve(name:String) function which would 'detect' any known fields and allow me to take action on item.label. This doesn't work from within hscript because it is actually the compiler that converts item.label intoitem.resolve("label")
Any ideas on how to solve this issue?
-
Rodin Jul 31 at 09:33
Sorry, that should be 'where label is a dynamic field unknown...'
< Prev
| Page 1 / 1 |
Next >