help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Fix for CType


From: Mathieu Suen
Subject: [Help-smalltalk] Fix for CType
Date: Thu, 12 May 2011 08:07:48 +0200

Hi Paolo


I have made a patch for CType comparaison.
Commit: 92b24ab42101800bbd86
You can fetch it from:
git://github.com/mathk/smalltalk.git


@@ -135,6 +135,17 @@ elements.'>
   structureType == #array ifTrue: [^CArrayCType from: type].
   structureType == #ptr ifTrue: [^CPtrCType from: type]
     ]
+    
+    = anObject [
+  ^self class == anObject class and: [
+      self cObjectType = anObject cObjectType
+  ]
+
+    ]
+
+    hash [
+  ^self cObjectType hash bitXor: self cObjectType hash
+    ]

     gcNew [
   "Allocate a new CObject with the type (class) identified by the receiver.


        Mth







reply via email to

[Prev in Thread] Current Thread [Next in Thread]