Operator Overloading
Operator
Trait
Point := (x, y)
Point(x, y) +: {
x := {
$x
}
y := {
$y
}
// Negative
`- $?` : {
}
// Addition
`$? + {other}` : {
}
// Reversed Addition
`{other} + $?` : {
}
// Incremental Addition
`$? += {other}` : {
}
}
// Additional Function Define And Implementation
Point +: toString() := {
} Last updated