diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-10 16:33:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-10 16:35:08 -0800 |
| commit | 0f0fb2256a46a8808794d7d4746d112278da3730 (patch) | |
| tree | 7cfb6b255beeb49705044876913e0332376b66d9 /lib/things.nom | |
| parent | db552f56dc1f2c6ea19a7d39d38ac66e52ed156e (diff) | |
Major overhaul of how modules and environments work, along with some
steamlining and tweaks to the makefile. Version bump: 6.14.13.8
Diffstat (limited to 'lib/things.nom')
| -rw-r--r-- | lib/things.nom | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/things.nom b/lib/things.nom index 32942d9..84682b3 100644 --- a/lib/things.nom +++ b/lib/things.nom @@ -5,7 +5,6 @@ test: an (Empty) is a thing a (Dog) is a thing: - [$it, $its] = [Dog, Dog] ($its, set up) means: $its.barks or= 0 @@ -37,7 +36,6 @@ test: assume (($d, bark) == "Bark!") a (Corgi) is a thing: - [$it, $its] = [Corgi, Corgi] $it [set up, gets pissed off] like a (Dog) ($it, as text) means "Dogloaf \{: for $k = $v in $it: add $k = $v}" ($its, sploot) means "sploooot" @@ -61,7 +59,6 @@ test: assume (($d, bark) == "Bark! Bark!") a (Vec) is a thing with {.x, .y}: - $its = (Vec) ($its, + $other) means (Vec {.x = ($its.x + $other.x), .y = ($its.y + $other.y)}) assume ((Vec {.x = 1, .y = 2}) + (Vec {.x = 10, .y = 10})) == @@ -145,6 +142,7 @@ externally (a class named $classname with $members $(initialize $)) means: ( Lua (" , function(\$class_id) + local it, its = \$class_id, \$class_id; \$body_lua end ") |
