contravariant argument types: wanna?
grauzone
none at example.net
Thu Sep 24 09:47:12 PDT 2009
Steven Schveighoffer wrote:
> The solution we ended up using is that *all* streams defined the seek
> function, even if they didn't support seeking, and if you called it on
> such objects, they just throw an exception.
So, if you want to see if an object supports seeking, you must call the
method + catch the exception? How is this better than a dynamic cast?
More information about the Digitalmars-d
mailing list