Fully dynamic d by opDotExp overloading

Nick Sabalausky a at a.a
Fri Apr 17 22:19:51 PDT 2009


"Christopher Wright" <dhasenan at gmail.com> wrote in message 
news:gsb05g$2ini$3 at digitalmars.com...
>
> Assuming that you are testing the logic of your application, you will 
> trivially check things like accessing "legnth" rather than "length" -- 
> under the assumption that these two methods would do different things. You 
> would spend approximately no additional testing effort on opDotExp.
>
> This doesn't hold if you are not writing tests.

I don't think I understand what you're trying to say. With static languages, 
I have never written, nor would I ever need to write, a test that checks for 
the behavior when accessing an object's "legnth" instead of "length". 





More information about the Digitalmars-d mailing list