aboutsummaryrefslogtreecommitdiffstats
path: root/alv
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-08-05 01:22:59 +0000
committers-ol <s+removethis@s-ol.nu>2025-08-05 01:44:22 +0000
commit1e11c0cfee0d5febfa6fc9aa96a389374af3a670 (patch)
tree411093cbb97caa3e7a56df1d1af4bcb082bea9f2 /alv
parentbuiltins: add doto macro (diff)
downloadalive-1e11c0cfee0d5febfa6fc9aa96a389374af3a670.tar.gz
alive-1e11c0cfee0d5febfa6fc9aa96a389374af3a670.zip
lib/glsl-view: add freeze and step!
Diffstat (limited to 'alv')
-rw-r--r--alv/type.moon2
1 files changed, 2 insertions, 0 deletions
diff --git a/alv/type.moon b/alv/type.moon
index 2e392d8..d3af642 100644
--- a/alv/type.moon
+++ b/alv/type.moon
@@ -30,6 +30,8 @@ local Primitive
--
-- @table T
T = setmetatable {}, __index: (key) =>
+ return key if key.__class
+
with type = Primitive key
rawset @, key, type