Re: freeing lists with repetitions
Eric DeWitt <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
I'd suggest that it be attached to an optional debug level. This would
be useful for this and other errors/warnings. And maybe at a higher
level we just get a message like "double free attempts were made" at
the end of a run.
-eric
On 27 May, 2004, at 13:09, jon klein wrote:
>
> On May 27, 2004, at 4:15 AM, Rick Giuly wrote:
>
>> The code below creates warning messages because it tries to free each
>> repetition on the element in the list. What's a good way to detect
>> this
>> problem and avoid the warnings?
>>
>> 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.
>
> Do people have any opinions on this? Are there reasons to keep these
> warnings around?
>
> - jon klein
>
> _______________________________________________
> breve mailing list
> [email protected]
> http://www.spiderland.org/mailman/listinfo/breve
>
_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve