[contest] Is a Cow an animal ++

Simen kjaeraas simen.kjaras at gmail.com
Wed Sep 29 13:47:41 PDT 2010


BCS <none at anon.com> wrote:

> Checking that the sequence of member function calls on an object is  
> valid is limited by how good your static analysts is. The type system  
> *can't* help you as the exact same code may or may not be valid  
> depending on arbitrary external aspects.

You are of course correct. Some such analysis could still be performed,
and the examples you give would simply leave the typestate in an
indeterminate state.

-- 
Simen


More information about the Digitalmars-d mailing list