Exception isn't thrown as expected

Alexandr Druzhinin drug2004 at bk.ru
Thu May 30 20:59:09 PDT 2013


31.05.2013 10:49, Marco Leise пишет:
>
> The code that you haven't shown reads:
>
>    int main(string[] args) {
>        SomeClass c;
>        auto t = c.getObjectType();
>        return 0;
>    }
>
> You have to fix that!
>
You mean I didn't initialize c? If even so, it should throw an 
exception, no hanging, I think. Nevertheless, a class instance is 
correct. I'll try to reduce code.


More information about the Digitalmars-d-learn mailing list