From 01ca61865cf816808151fdecccd84bc6da8194ff Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 4 Jul 2018 18:28:38 -0400 Subject: - Implemented ":cast" macro, and used it to implement both ":abstraction" and ":representation". - Fix: You shouldn't be able to resolve tags if you haven't imported a module (even if they are exported). --- stdlib/source/lux.lux | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'stdlib/source/lux.lux') diff --git a/stdlib/source/lux.lux b/stdlib/source/lux.lux index 55499d6cc..31f5165ea 100644 --- a/stdlib/source/lux.lux +++ b/stdlib/source/lux.lux @@ -6341,3 +6341,12 @@ _ (fail "Wrong syntax for alias:"))) + +(def: #export (cursor-description [file line column]) + (-> Cursor Text) + (let [separator ", " + fields ($_ "lux text concat" + (text/encode file) separator + (nat/encode line) separator + (nat/encode column))] + ($_ "lux text concat" "[" fields "]"))) -- cgit v1.2.3