Operator overloading in Feature Requests
|
|
|
|
| Status: |
Open
Issue hasn't been assigned a status value.
|
|
|
I imagine this is going to get deferred pretty quickly, but if DM ever gets some significant new features, the ability to overload operators would be great. For example:
vector/operator +(vector/a, vector/b) return new/vector(a.x + b.x, a.y + b.y)
mob/verb/test() var/vector a = new(1, 2) b = new(3, 4) c = a + b usr << "c = ([c.x], [c.y])"
|
This was mentioned a while ago on the forums by Audeuro.
|