Do everything in Java…

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 11 00:05:03 PST 2014


On Wed, 10 Dec 2014 17:17:11 -0800
Walter Bright via Digitalmars-d <digitalmars-d at puremagic.com> 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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141211/a4b72e1a/attachment.sig>


More information about the Digitalmars-d mailing list