开发者

Does dwscript support operator overloading

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜