Re: how to organize my main file ?



I have another question: Is it ok to write a function to destroy all
the objects(Its not just a simple 'free' call btw, there are lists
within objects which must be destroyed first)
.



Relevant Pages

  • Re: [PATCH] UBI: dereference after kfree in create_vtbl
    ... the implementation abstraction of the various ubi_scan_info lists) ... It does not hurt at all that we do one extra allocation, ... I have 1 destroy location. ...
    (Linux-Kernel)
  • Re: A container library in C Part 4. The arraylist container
    ... How do you destroy a read-only object? ... and is thus an example of gow a read-only object is ... and that is not the case for lists. ... And an array can validly be considered a list. ...
    (comp.lang.c)
  • Re: assignment operator and CList
    ... originals go out of scope they will also want to destroy the button window. ... >>> The problem is that I want to store whole objects not pointers, ... >>> CButtonX is just customized CButton class. ... You cannot store them in lists. ...
    (microsoft.public.vc.mfc)
  • Re: A container library in C Part 4. The arraylist container
    ... fast copying) impossible. ... How do you destroy a read-only object? ... Only writable lists can be destroyed, ...
    (comp.lang.c)
  • Re: [Q] about free(ptr)
    ... which we are about to destroy by free. ... if you want to allow certain lists not to call freeon their ... payload parameter, just add that "free-it function" argument back: ... Reading email is like searching for food in the garbage, ...
    (comp.lang.c)