Hi all. I was browsing the feature requests at BerliOS, and I came across one where someone requested a Delete file feature for C::B.
After thinking about this for awhile I'm going to have to agree with mandrav. This is a bad idea in general, and shouldn't be added to C::B. So I'm removing the code from this post. ;)
I 'm 100% against giving such abilities to any C::B class at the filesystem level.
Quote from: mandrav on May 11, 2006, 09:22:32 PM
I 'm 100% against giving such abilities to any C::B class at the filesystem level.
Well that settles that then......
For the sake of code itself:
you check
if (!prj)
return;
after having already used the pointer.
Besides, I think I'll use this afterall since it's usefulness defeats the risks in my case ;)
Thanks,
Rafael