<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 December 2017 at 19:43, Walter Bright via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/7/2017 5:20 PM, Manu wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Right, but that's what I'm saying; using your solution of putting a function in a module that's not compiled to inhibit code generation won't inhibit people from *attempting* to making runtime calls (and getting link errors)... whereas a compile error trying to runtime-call a function that shouldn't be runtime-called might be more desirable.<br>
</blockquote>
<br></span>
That's exactly what happens if you put a declaration in a .h file, call the function, and don't link in the implementation. I don't see the difference.<br>
</blockquote></div><br></div><div class="gmail_extra">Nicholas wants a *compile* error, not a link error.</div></div>