Make primitives reasonable

This commit is contained in:
Erik Arvidsson
2015-10-30 17:33:47 -04:00
parent 30cc7d518f
commit 3c0ef5bcbb
11 changed files with 164 additions and 170 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ func (fs String) Ref() ref.Ref {
}
func (s String) Equals(other Value) bool {
return other != nil && s.Ref() == other.Ref()
if other, ok := other.(String); ok {
return s.s == other.s
}
return false
}
func (fs String) Chunks() []ref.Ref {