I have the following in one namespace shapes::
(derive ::rect ::shape)
(derive ::square ::rect)
Now do the following in the namespace shapes:
(isa? ::square ::shape)
returns true. But when I do the following in a namespace, where I actually implement multimethods for drawing,
(isa? ::square ::shape)
he returns false. Therefore, despite the fact that I have the correct functions for sending multimethods, I get the error message "No sending function was found."
Am I missing something? Realizing all types of shapes in one giant namespace seems meaningless to me.
source
share