Andrej Mitrovic wrote:
> On 9/9/11, Adam Burton <[email protected]> wrote: >> Did some a simple test [1] and looks like the alias alone should work. I >> think the rule is the template code is included if it is instantiated and >> aliasing the template seems to be classed as instantiating it. > > Hmm. Interesting, because I did the same but I didn't find the symbol > names when using an alias. I've used objconv to generate the asm code > so maybe I passed the wrong flag or something. :) Well like I said it had an extra object. If I convert the modules object from inside the library then there is nothing (obj2asm), but if I list the objects in the library then there is an extra containing the template function. However if I tell dmd to create just object files (dmd -c test.d) then the function is inside the modules object file.
