HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Operator Overloading #38

Open utterances-bot opened 4 years ago

utterances-bot commented 4 years ago

Operator Overloading - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/types-abstract-operator-overloading.html

triture commented 4 years ago

I found useful extra info on this old blog: http://haxedev.wikidot.com/article:operator-overloading

ghost commented 1 year ago

As programming languages like java do not support operator overloading, it is why I think that abstracts are a very important compiler feature.

danielo515 commented 1 year ago

A list of valid operators is needed, like in the old docs. As a new user I didn’t know the even existed

zabojad commented 1 year ago

Is there a way to just "forward" operators when we abstract a primitive type like Int ?

Aurel300 commented 1 year ago

@zabojad It's described in the last section.