summaryrefslogtreecommitdiff
path: root/src/cli/runtime/Symbol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/runtime/Symbol.cs')
-rw-r--r--src/cli/runtime/Symbol.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/runtime/Symbol.cs b/src/cli/runtime/Symbol.cs
index 532b5f39..4f532d14 100644
--- a/src/cli/runtime/Symbol.cs
+++ b/src/cli/runtime/Symbol.cs
@@ -30,7 +30,7 @@ public String toString()
return name;
}
-public static Symbol intern(String name) { lock(table) { Symbol sym = (Symbol) table[name]; if(sym == null) table.Add(name, sym = new Symbol(name)); return sym; } }
+public static Symbol intern(String name) { lock(table) { Symbol sym = (Symbol) table[name]; if(sym == null) { if(name[0] == ':') sym = new Keyword(name); else sym = new Symbol(name); table.Add(name, sym); } return sym; } }
/**
* Used by Namespace.intern()
* @param name