From: Mike R. <mik...@gm...> - 2007-09-03 06:44:22
|
It sounds like there are good reasons for Sooc to have interfaces that can have partial or (maybe) complete default implementations, and other good reasons for Sooc to have interfaces that forbid default implementations. Maybe it should allow both? I haven't thought this through completely, but maybe there can be something like s_iface and s_pure_iface. Pure interfaces would forbid any default implementations either by providing no means of connecting handlers or by zeroing the whole iface at the end of its init function. Also, regardless of how interfaces end up working, I think it might be nice to have a debugging mode at runtime. It can be on or off. When it's on, each class will track where its messages are connected. User code could then do something like s_dbg_msg_connections (stream, Class). There could potentially be other debugging help when debugging mode is on. This message tracking will be non-trivial to implement, though. -Mike |