diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-04 13:40:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-04 13:40:09 -0400 |
| commit | 38622ccbec590e4f6b578460e3a4b1649796cc97 (patch) | |
| tree | b11eeb08e2d0190ea25f1ea23f130351d014ce2d /test | |
| parent | 22063462a90b5c290f5f71319b259fca80da8097 (diff) | |
Change metamethod names
Diffstat (limited to 'test')
| -rw-r--r-- | test/metamethods.tm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/metamethods.tm b/test/metamethods.tm index 26a5abd6..6a870ee9 100644 --- a/test/metamethods.tm +++ b/test/metamethods.tm @@ -2,19 +2,19 @@ struct Vec2(x,y:Int): func __add(a,b:Vec2; inline)->Vec2: return Vec2(a.x+b.x, a.y+b.y) - func __sub(a,b:Vec2; inline)->Vec2: + func __subtract(a,b:Vec2; inline)->Vec2: return Vec2(a.x-b.x, a.y-b.y) - func __mul(a,b:Vec2; inline)->Int: + func __multiply(a,b:Vec2; inline)->Int: return a.x*b.x + a.y*b.y - func __mul2(a:Vec2,b:Int; inline)->Vec2: + func __multiply2(a:Vec2,b:Int; inline)->Vec2: return Vec2(a.x*b, a.y*b) - func __mul3(a:Int,b:Vec2; inline)->Vec2: + func __multiply3(a:Int,b:Vec2; inline)->Vec2: return Vec2(a*b.x, a*b.y) - func __mul4(a,b:Vec2; inline)->Vec2: + func __multiply4(a,b:Vec2; inline)->Vec2: return Vec2(a.x*b.x, a.y*b.y) func __negative(v:Vec2; inline)->Vec2: |
