I’m looking into DCI (Data, Context Interaction –
artima - The DCI Architecture: A New Vision of Object-Oriented Programming). I’m unhappy with the
implementation I’m seeing, so I’m looking at rolling my own. I’ve
decided that I want to use wrapper objects–really, really thin wrapper
objects. In particular, my plan is to redefine the equality operators,
like so: https://gist.github.com/student/9797293
Of course, these things don’t inherit from Object or Kernel. I don’t
want to go into the debate about how to implement DCI here. My question
is simply whether or not anything in the ruby core breaks if I redefine
#equal? and #object_id.