I recently made a mistake where I put the wrong class name in when overriding the default behaviour for a Hat. Instead of selecting the fb11::simple_app class, provided by FB11, I chose the dbicdh::is_brain class instead.
Nothing alerted me to this. I just got an error when something somewhere tried to run a method on an object of the wrong type.
It would be good if we could associate Roles with Hat types so that we can test that the returned objects implement the correct interface.
I recently made a mistake where I put the wrong class name in when overriding the default behaviour for a Hat. Instead of selecting the
fb11::simple_app
class, provided by FB11, I chose thedbicdh::is_brain
class instead.Nothing alerted me to this. I just got an error when something somewhere tried to run a method on an object of the wrong type.
It would be good if we could associate Roles with Hat types so that we can test that the returned objects implement the correct interface.