compile-time explicitness
Andrej Mitrovic
andrej.mitrovich at gmail.com
Fri Sep 23 09:16:07 PDT 2011
If you instantiate a variable with a function call at compile-time
then that function shouldn't be compiled in (AFAIK) unless it's
referenced elsewhere. And for disallowing user-code to use such a
function that's what access specifiers are for. The beauty of D is
that you write a function once and only once, and you can (if it's
possible) run it at compile time, or at runtime based on the *call*,
not it's definition.
I think you need to slow down with these proposals. This introduces
nothing but complications into the language imho.
More information about the Digitalmars-d
mailing list