help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] Fix for CType


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] Fix for CType
Date: Thu, 19 May 2011 00:46:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10

On 05/12/2011 08:07 AM, Mathieu Suen wrote:
      ]
+
+    = anObject [
+  ^self class == anObject class and: [
+      self cObjectType = anObject cObjectType
+  ]
+
+    ]
+
+    hash [
+  ^self cObjectType hash bitXor: self cObjectType hash
+    ]


There is a typo (the first "cObjectType" should be "class"). Also, you should add equality/hash implementations for CPtrCType and CArrayCType.

Thanks!

Paolo



reply via email to

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