tooling quality and some random rant
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Feb 13 07:41:17 PST 2011
On 2/13/11, Gary Whatmore <no at spam.sp> wrote:
> Andrej Mitrovic Wrote:
>
>> I guess if you're not writing new templates in your code then
>> incremental compilation is possible?
>
> Exactly. What I did is a simple wrapper module for Phobos with
> preinstantiated non-templated functions for typical use cases. For example
> there are few wrappers for the templated collection functions. It's easy to
> grep for '!' in your code and rewrite it using these wrappers. Problem
> solved.
>
> - G.W.
>
Or one-up DMD and use a templated function in your user code that
automatically finds a pre-instantiated template by using the
import("wrappermodule.d") trick. I wonder if it would be possible to
wrap an entire module as a string (with the q{} trick) to a template
that does exactly that..
More information about the Digitalmars-d
mailing list