diff options
Diffstat (limited to 'src/cli/runtime')
-rw-r--r-- | src/cli/runtime/PersistentArrayMap.cs | 2 | ||||
-rw-r--r-- | src/cli/runtime/RT.cs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/cli/runtime/PersistentArrayMap.cs b/src/cli/runtime/PersistentArrayMap.cs index 8ffaca76..68d4b2c1 100644 --- a/src/cli/runtime/PersistentArrayMap.cs +++ b/src/cli/runtime/PersistentArrayMap.cs @@ -34,7 +34,7 @@ internal readonly Object[] array; internal const int HASHTABLE_THRESHOLD = 42;
protected PersistentArrayMap(){
- this.array = RT.EMPTY_ARRAY;
+ this.array = new object[]{};
}
virtual internal PersistentArrayMap create(params Object[] init){
diff --git a/src/cli/runtime/RT.cs b/src/cli/runtime/RT.cs index 5cf4187f..8f7141d9 100644 --- a/src/cli/runtime/RT.cs +++ b/src/cli/runtime/RT.cs @@ -21,8 +21,9 @@ namespace clojure.lang public class RT
{
- public static Symbol T = Symbol.intern("t");
+ public static Symbol T = Symbol.intern(":t");
static public Var OUT = Module.intern("clojure", "^out");
+ static public Var _CT_MODULE = Module.intern("clojure", "^module");
public static Object[] EMPTY_ARRAY = new Object[0];
@@ -38,6 +39,8 @@ public class RT chars = new Object[256];
for(int i=0;i<chars.Length;i++)
chars[i] = (char)i;
+ OUT.bind(Console.Out);
+ _CT_MODULE.bind((Module.findOrCreate("clj-user")));
}
static public bool equal(Object k1,Object k2){
|