www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - aliasing templates

reply Mike Linford <mike.linford.reg gmail.com> writes:
I remember that if you alias a template, it is instantiated and is 
compiled into the object file/library. What I can't remember is where in 
the d spec this behavior is described. Can anyone help me out?

-- Mike L.
Jun 18 2010
parent "Steven Schveighoffer" <schveiguy yahoo.com> writes:
On Fri, 18 Jun 2010 22:37:22 -0400, Mike Linford  
<mike.linford.reg gmail.com> wrote:

 I remember that if you alias a template, it is instantiated and is
 compiled into the object file/library. What I can't remember is where in
 the d spec this behavior is described. Can anyone help me out?
I'm not sure it's part of the spec, but if it is, it would be in the ABI section probably. I'm pretty sure it's just an implementation detail of the compiler. -Steve
Jun 21 2010