Do everything in Java…

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 10 17:17:11 PST 2014


On 12/10/2014 10:28 AM, H. S. Teoh via Digitalmars-d wrote:
> Yeah, the compiler cannot instantiate the template without access to the
> full body. It *could*, though, if we were to store template body IR in
> object files, perhaps under specially-dedicated object file sections. It
> wouldn't prevent reverse-engineering (which is moot anyway when
> templates are involved), but it *would* work as an "opaque" library
> interface file.

Storing it as body IR accomplishes nothing practical over storing it as source 
file, i.e. .di files.



More information about the Digitalmars-d mailing list