Re: DELETEP, FREEP, and friends

From: Tomas Frydrych (tomas@frydrych.uklinux.net)
Date: Thu May 30 2002 - 14:23:58 EDT

  • Next message: 發揮大腦潛能訊息@abisource.com: "超強記憶鎖鏈法"

    > In short, the whole reason we created those macros was to ensure that
    > all delete, free, etc. calls did all of the nice null-sanity work
    > you'd usually want. Thus instead of typing the risky:
    >
    > delete m_pHeaderSL;
    >

    Correct me if I am mistaken, but the c++ operator is designed to
    handle NULLs, so it is not really necessary to this kind of a check;
    its a different story with free though, isn't it?

    > motto -- a little macro goes a long, long way
    a little macro can also obscure code an awfull "long" :-).

    Tomas



    This archive was generated by hypermail 2.1.4 : Thu May 30 2002 - 14:29:31 EDT