D as A Better C?
Johannes Pfau
nospam at example.com
Wed Feb 12 07:14:24 PST 2014
Am Wed, 12 Feb 2014 14:37:53 +0000
schrieb "John Colvin" <john.loughran.colvin at gmail.com>:
>
> What I mean is: template in module A that needs one of these
> flags is instantiated from module B that needs to *not* have that
> flag.
The template is emitted to the object file of module B, so only the
flags used with B matter and as long as 'these flags' are a strict
subset, it's always possible to use the same code in standard D.
(It is kinda important that we produce the same code in both cases
though - otherwise weird things can happen if the linker merges
template instances)
More information about the Digitalmars-d
mailing list