On Thursday, 11 December 2014 at 08:05:13 UTC, ketmar via
Digitalmars-d wrote:
On Wed, 10 Dec 2014 17:17:11 -0800
Walter Bright via Digitalmars-d <[email protected]>
wrote:
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.
except that there's no need to parse source code over and over
again,
which is good for other tools (like completion suggesting,
intelligent
code browsing and so on).
Yes tooling is a big part of it.
--
Paulo