On 07/27/2017 11:47 AM, Adam D. Ruppe wrote:
On Thursday, 27 July 2017 at 18:35:02 UTC, FoxyBrown wrote:
But the issue was about missing symbols, not anything "extra". If
datatime.d is there but nothing is using it, why should it matter?
YOU were using it with an `import std.datetime;` line. With the file
still there, it sees it referenced from your code and loads the file...
but since it is no longer used upstream, the .lib doesn't contain it and
thus missing symbol.
So, the actual problem is that given both
datetime/package.d and
datetime.d,
the import statement prefers the file. It could produce a compilation error.
If we don't want that extra check by the compiler, it would be better to
keep datetime.d with a warning in it about the change. The warning could
say "please remove this file". :)
Ali