]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/classes/struct/struct.factor
Using "same?" in more places.
[factor.git] / basis / classes / struct / struct.factor
index 498350afbfcbc6ff1ac60a17603fb2afcba7e6bc..3ca6bf05a0dcd53b84074b7e67a040b7116911b9 100644 (file)
@@ -52,7 +52,7 @@ M: struct >c-ptr
 
 M: struct equal?
     over struct? [
-        2dup [ class-of ] bi@ = [
+        2dup [ class-of ] same? [
             2dup [ >c-ptr ] both?
             [ [ >c-ptr ] [ binary-object ] bi* memory= ]
             [ [ >c-ptr not ] both? ]