Mercurial > repos > tabletprog
annotate modules/vec.tp @ 331:61f5b794d939
Breaking change: method call syntax now always uses the syntactic receiver as the actual receiver. This makes its behavior different from function call syntax, but solves some problems with methods being shadowed by local variables and the like.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 28 Mar 2015 14:21:04 -0700 |
parents | 860075fdc2d3 |
children |
rev | line source |
---|---|
327
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
1 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
2 x:y <- :_x :_y { |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
3 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
4 x <- _x |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
5 y <- _y |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
6 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
7 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
8 |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
9 x:y:z <- :_x :_y :_z { |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
10 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
11 x <- _x |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
12 y <- _y |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
13 z <- _z |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
14 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
15 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
16 |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
17 x:y:z:w <- :_x :_y :_z :_w { |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
18 #{ |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
19 x <- _x |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
20 y <- _y |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
21 z <- _z |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
22 w <- _w |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
23 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
24 } |
860075fdc2d3
Add the beginning of a vector module
Michael Pavone <pavone@retrodev.com>
parents:
diff
changeset
|
25 } |