summaryrefslogtreecommitdiff
path: root/src/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/runtime/PerisistentArrayList.cs2
-rw-r--r--src/cli/runtime/TObj.cs2
-rw-r--r--src/cli/runtime/Var.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/runtime/PerisistentArrayList.cs b/src/cli/runtime/PerisistentArrayList.cs
index 06eb3d6f..3b9173a1 100644
--- a/src/cli/runtime/PerisistentArrayList.cs
+++ b/src/cli/runtime/PerisistentArrayList.cs
@@ -51,7 +51,7 @@ override public int length(){
return _count;
}
-public int count(){
+override public int count(){
return _count;
}
diff --git a/src/cli/runtime/TObj.cs b/src/cli/runtime/TObj.cs
index 5bc2e2cd..ba48b9e9 100644
--- a/src/cli/runtime/TObj.cs
+++ b/src/cli/runtime/TObj.cs
@@ -17,7 +17,7 @@ public class TObj : IObj{
TRef _attrs;
public TObj(){
- this._attrs = Transaction.tref(PersistentArrayIdentityMap.EMPTY);
+ this._attrs = Transaction.tref(PersistentArrayMap.EMPTY);
}
diff --git a/src/cli/runtime/Var.cs b/src/cli/runtime/Var.cs
index 1ab3b0b1..c4b9e7b9 100644
--- a/src/cli/runtime/Var.cs
+++ b/src/cli/runtime/Var.cs
@@ -15,7 +15,7 @@ namespace clojure.lang
{
public class Var : AFn
{
-public readonly Symbol sym; public Namespace ns; public Binding binding; volatile IPersistentMap threadBindings = PersistentArrayIdentityMap.EMPTY; volatile int tcount = 0; internal Var(Symbol sym, Namespace ns) { if(sym.GetType() != typeof(Symbol)) throw new ArgumentException("Only simple symbols can be vars"); this.ns = ns; this.sym = sym; } override public String ToString() { if(ns == null) return "#:" + sym; return ns.name + ":" + sym; } public Var bind(Object val) { if(binding == null)
+public readonly Symbol sym; public Namespace ns; public Binding binding; volatile IPersistentMap threadBindings = PersistentArrayMap.EMPTY; volatile int tcount = 0; internal Var(Symbol sym, Namespace ns) { if(sym.GetType() != typeof(Symbol)) throw new ArgumentException("Only simple symbols can be vars"); this.ns = ns; this.sym = sym; } override public String ToString() { if(ns == null) return "#:" + sym; return ns.name + ":" + sym; } public Var bind(Object val) { if(binding == null)
binding = new Binding(val); else binding.val = val;
return this; } public Object getValue() {