1 + 2 // 3
// int's class:
class int
func +(value: int): int
return CSharpMethods.pl(self, value)
Another idea:
1 + 2 // 3
// int's class:
class int {
func +: int { | value: int |
return CSharpMethods.pl(self, value)
}
}
Another idea:
1 + 2 // 3
// int's class:
int: class {
+: func = int { | value: int |
return CSharpMethods.pl(self, value)
}
}
Another idea:
1 + 2 // 3
// int's class:
int: class {
+: func = { | value: int |
return CSharpMethods.pl(self, value)
}: int
}