Spurious imports in Phobos ?
Jacob Carlborg
doob at me.com
Wed Nov 9 05:42:24 PST 2011
On 2011-11-09 14:16, Trass3r wrote:
>> Phobos contains a lot of templates and if a template isn't
>> instantiated it won't be compiled. Meaning there can be hidden compile
>> errors if you start to remove imports and they will not show until a
>> template that uses something from the import is instantiate.
>
> Wouldn't it be possible/better then to move the imports into those
> template functions?
I probably would. Having imports in non-global scope is quite a new
feature and I guess nobody has either thought of the idea or just
haven't had the time yet.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list