HaxeFoundation/hscript

type casting

R3D9477 opened this issue · 2 comments

Hi. Is it possible to use type-casting at haxe-expression?
For example code a = cast(v, $MyClass); will return error EUnknownVariable(cast).

Thanks.

You can implement it yourself by defining a "cast" function in the interpreter context.

thanks for hint!