Re: freeing lists with repetitions
"Rick Giuly" <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <001901c44421$f6f7a1d0$0401a8c0@horse> |
> >
> > h (object).
> > h = new Hello.
> > free {h,h,h,h}.
>
> There's currently no way to automatically detect this situation and
> avoid
> the warnings -- you'd have to step through the list and do it yourself.
>
> It's occurred to me, though, that the freed instance warnings are a bit
> irritating and almost never useful, so I'm considering getting rid of
> them
> altogether.
>
My thoughts:
Can freeing an already freed instance cause an insidious error? If the
answer is no, as I suspect, then definitely drop the warnings. I get so many
of them it's hard for me to find the last lines of real output. :) And, I
won't worry about the microsecond lost detecting that there is no need to
free the memory. There could be a command line option to turn the warnings
on if somebody really needs them.
-Rick
_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve