On Tuesday, 7 March 2017 at 01:14:28 UTC, Q. Schroll wrote:
I have a fork of the standard-library in the folder "phobos". In version 2.072.1 of the compiler, I could use code like

    void main()
    {
        import phobos.std.format;

That should never have worked unless you changed the module declaration in the format file too...

But if I do so, it imports the one from the standard library attached to the compiler. Is it a regression? Should the old version have rejected my code? I don't see any possibility to test specific changes in modules of my fork.

You pass your modified file to the compiler:

dmd yourfile.d format.d

The format.d there can be a copy of the one from phobos (or a fork or whatever) and since you passed it explicitly on the command line, it takes precedence over the one in the library.

You still import it as std.format. You can do that with as many modules as you like.

Reply via email to