Calvin Hsia's WebLog

thoughts from a professional developer

March, 2011

  • Calvin Hsia's WebLog

    The cost of using nothing

    • 0 Comments
    What is the cost of using nothing? Seems like a silly question. Suppose you see code like this: void * MyClass::DoSomething() { int size = sizeof(MyThing) * m_NumItems; var ptr = malloc(size); return ptr; } It’s a method...
Page 1 of 1 (1 items)