<html>
<head>
<base href="http://bugzilla.gdcproject.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:ibuclaw@gdcproject.org" title="Iain Buclaw <ibuclaw@gdcproject.org>"> <span class="fn">Iain Buclaw</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - GDC prevents backend from removing dead functions"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=161">bug 161</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WONTFIX
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - GDC prevents backend from removing dead functions"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=161#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - GDC prevents backend from removing dead functions"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=161">bug 161</a>
from <span class="vcard"><a class="email" href="mailto:ibuclaw@gdcproject.org" title="Iain Buclaw <ibuclaw@gdcproject.org>"> <span class="fn">Iain Buclaw</span></a>
</span></b>
<pre>This is the crux of the problem why we do what we do (snipped, shortened, and
with added clarity from std.exception).
----
private void bailOut() { assert(false); }
public T enforce(T value)
{
if (!value)
bailOut();
return value;
}
----
When compiling the module, 'private bailOut' is would be seen as unused, and so
considered as a candidate for removal. However, external modules that
instantiate 'public enforce' would indirectly need bailOut to exist.
I am aware that the spec says that 'private' in D is equivalent to 'static' in
C, but in practice, that it just doesn't work that way.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>