Is it possible to implement operators as ordinary functions?

Adam D. Ruppe destructionator at gmail.com
Tue May 19 02:42:22 UTC 2020


On Tuesday, 19 May 2020 at 02:36:24 UTC, data pulverizer wrote:
> I was wandering if it possible to implement operators as 
> ordinary functions instead of as member functions of a class or 
> struct for example something like this:

nope, it must be done as member functions.


More information about the Digitalmars-d-learn mailing list