А вот так мы инициализируем переменные =)

    Date: 10/31/06 (Code WTF)    Keywords: no keywords

    template struct Null { operator T* const () { delete this; return reinterpret_cast(NULL); } };
    ...

    CMyClass *pTest = *(new Null);

    гораздо симпатичнее, чем просто CMyClass *pTest = NULL;
    =)

    Source: http://community.livejournal.com/code_wtf/57411.html

« Look-up Table Bitshift... || найди 3 отличия »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home