Operator Overloading - Catalog

Catalog

A classification of some common programming languages is made by whether their operators are overloadable by the programmer and whether the operators are limited to a predefined set.

Operators Not overloadable Overloadable
New definable
  • ML
  • Pico
  • Prolog
  • ALGOL 68
  • Eiffel
  • Fortran
  • F#
  • Haskell
  • Io
  • Perl 6
  • R
  • Scala
  • Seed7
  • Smalltalk
Limited set
  • BASIC
  • C
  • Go
  • Java
  • JavaScript
  • Modula-2
  • Objective-C
  • Pascal
  • Ada
  • C#
  • C++
  • D
  • Dart
  • Delphi (since 2005)
  • FreeBASIC
  • Groovy
  • Lua
  • Object Pascal (Free Pascal)
  • PHP (using magic methods or ArrayAccess interface or Operator extension)
  • Perl
  • Python
  • Ruby
  • Visual Basic .NET

Read more about this topic:  Operator Overloading