On Fri, May 25, 2012 at 1:34 PM, sclytrack <span dir="ltr"><<a href="mailto:sclytrack@iq87.fr" target="_blank">sclytrack@iq87.fr</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 05/25/2012 05:42 PM, Steven Schveighoffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 25 May 2012 11:37:52 -0400, Steven Schveighoffer<br>
<<a href="mailto:schveiguy@yahoo.com" target="_blank">schveiguy@yahoo.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 25 May 2012 11:28:07 -0400, Alex Rønne Petersen<br>
<<a href="mailto:alex@lycus.org" target="_blank">alex@lycus.org</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On <a href="tel:25-05-2012%2017" value="+12505201217" target="_blank">25-05-2012 17</a>:23, Steven Schveighoffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 25 May 2012 11:03:33 -0400, Alex Rønne Petersen<br>
<alex@lycus..org> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On <a href="tel:25-05-2012%2016" value="+12505201216" target="_blank">25-05-2012 16</a>:56, Steven Schveighoffer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Wow, you're right, it's not documented. That should be fixed!<br>
</blockquote>
<br>
Before we do, we should deprecate clear and rename it to finalize,<br>
though.<br>
</blockquote>
<br>
I don't like finalize because it's not a finalizer.<br>
<br>
I think we should mimic other languages that have a finalizer and a<br>
deterministic dispose function.<br>
<br>
-Steve<br>
</blockquote>
<br>
But it calls rt_finalize...?<br>
</blockquote>
<br>
Yeah, because non-deterministic destruction is part of deterministic<br>
destruction.<br>
<br>
finalize -> destroy non-gc resources<br>
dispose -> 1. do deterministic destruction involving possible GC<br>
resources 2. call finalize.<br>
<br>
e.g. a buffered file:<br>
<br>
finalize -> close the file handle<br>
dispose -> flush the GC allocated buffer into the handle, then close<br>
the handle<br>
</blockquote>
<br>
I take it back, dispose is no good. That should be the name of the<br>
deterministic destructor in the object.<br>
<br>
Now I don't have a good name. Finalize isn't right, and neither is<br>
dispose...<br>
<br>
-Steve<br>
</blockquote>
<br></div></div>
blank, destroy, trash, dump, zero, bleach, cleanup,<br>
sanitize, burn, nuke, eject, jetisson, discard,<br>
landfill, waste, litter, debris, recycle, obliterate,<br>
annihilate, eradicate, expunge, finish, ravage, wipe,<br>
zap, abolish, decimate, demolish, massacre, murder,<br>
ruin, slaughter, quash, scrub, splat<br>
<br>
<br>
</blockquote></div><br><div>I'm partial to defenestrate().</div>