1

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.
Does dwscript support this?

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

Johan
  • 74,508
  • 24
  • 191
  • 319
  • This might be more appropriate as an entry in the DWScript issue tracker on googlecode. Currently they aren't supported script-side, Delphi-side the major structures are in place, but there are no convenience APIs, and no unit tests on that aspect (though they are planned). – Eric Grange Jun 03 '11 at 06:50
  • @eric, thanks I wasn't sure of the status of this issue in DWScript, will do. – Johan Jun 03 '11 at 10:53

1 Answers1

3

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.

Eric Grange
  • 5,931
  • 1
  • 39
  • 61