operator overloading outside the type

sfp sfp at hush.ai
Tue Apr 1 03:45:09 UTC 2025


On Saturday, 29 March 2025 at 18:48:04 UTC, Walter Bright wrote:
> But overloading operators with freestanding functions? It 
> becomes a nightmare with non-trivial programs.

Even good old Fortran has free operators:

https://en.wikibooks.org/wiki/Fortran/language_extensions#Operator_Overloading

... but it's a nightmare for other reasons. ;-)


More information about the Digitalmars-d mailing list