>>4
c'mon, if you can't do something in C++ doesn't mean that it can't be done elsewhere
Name:
Anonymous2011-01-13 14:52
Class objects in garbage collected environments generally have reference semantics when it comes to equality by default.
You can override the default behavior to give your objects value semantics for equality comparison. This is done with string objects in python, for example.
You are testing if the symbols are pointing to the same object, create an __eq__(self, other) function in both of the classes to overload the == operator.
>>12
I rarely buy baguettes. I buy energy drinks only after a sleepless night, which happens every month or two. Only the apple juice is a staple for me.