开发者

Does dwscript support operator overloading

开发者 https://www.devze.com 2023-03-09 15:39 出处:网络
I know dwscript has operator overloading for compound operators += etc. I would like to have operator overloading for +, - etc as well for use in addition, multiplication etc. of matrix objects.

I know dwscript has operator overloading for compound operators += etc.

I would like to have operator overloading for +, - etc as well for use in addition, multiplication etc. of matrix objects.

Doe开发者_JAVA百科s dwscript support this?

And if so what this the syntax do overload an operator?


As of last week, binary operators overloading is supported and tested, both script-side (user-specified operator overloading) and Delphi-side (built-in operator overloading).

For the syntax, see here and there.

0

精彩评论

暂无评论...
验证码 换一张
取 消