Rainer Deyke wrote:
On 10/19/2010 01:31, Don wrote:
It's not obvious to me how that can be done in the presence of
templates. Although it's easy to distinguish between library and
non-library *files*, it's not at all easy to distinguish between library
and non-library *code*.

Simple.  If the template is in a library file, it's library code,
regardless of where it was instantiated.

The separation isn't clean. User code instantiates library code which instantiates user code. Look at std.algorithm, for example.
Mixins and template alias parameters blur things even further.

Reply via email to