The OpenD Programming Language

var.opAssign

Assigns a value to the var. It will do necessary implicit conversions and wrapping.

You can make a method toArsdJsvar on your own objects to override this default. It should return a var.

struct var
opAssign
(
T
)
(
T t
)
if (
!is(T == var)
)

Meta

History

On April 20, 2020, I changed the default mode for class assignment to wrapNativeObject. Previously it was wrapOpaquely.

With the new wrapNativeObject behavior, you can mark methods @scriptable to expose them to the script.