Haxe Forum > Haxe runtime proxy

  • 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 into
    item.resolve("label")

    Any ideas on how to solve this issue?

  • Sorry, that should be 'where label is a dynamic field unknown...'

< Prev | Page 1 / 1 | Next >