In one namespace say "shapes" I have the following,
(derive ::rect ::shape)
(derive ::square ::rect)
now in shapes ns when I do,
(isa? ::square ::shape)
returns true,but in the namespace where I actually implement multimethods for drawing when I do,
(isa? ::square ::shape)
it returns false so even though I have correct multi method dispaches in place I get an error that says no dispatch function found.
Am I missing something? Implementing all types of shapes in one giant namespace seems pointless to me.