From d13bcde2b9306e0c87b055faed88da76bd3ff41e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Oct 2017 16:16:07 -0700 Subject: Renamed repr_if_not_string to "stringify" and added nomsu:stringify for convenience. --- nomsu.moon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nomsu.moon') diff --git a/nomsu.moon b/nomsu.moon index 8d952f2..d24b27c 100755 --- a/nomsu.moon +++ b/nomsu.moon @@ -197,6 +197,7 @@ class NomsuCompiler @debug = false @utils = utils @repr = (...)=> repr(...) + @stringify = (...)=> utils.stringify(...) @loaded_files = setmetatable({}, {__index:parent and parent.loaded_files}) if not parent @initialize_core! @@ -436,7 +437,7 @@ class NomsuCompiler @writeln "#{colored.bright "EXPR:"} #{expr}, #{colored.bright "STATEMENT:"} #{statement}" if statement @error "Cannot use [[#{bit.src}]] as a string interpolation value, since it's not an expression." - insert concat_parts, "nomsu.utils.repr_if_not_string(#{expr})" + insert concat_parts, "nomsu:stringify(#{expr})" if string_buffer ~= "" insert concat_parts, repr(string_buffer) -- cgit v1.2.3