On Wed, 23 Jul 2014 20:32:33 GMT, Roderick Gibson wrote:

Makes sense, I figured it was kind of an uncommon use case. Thanks!

I can imagine some use cases:

  1. Since DMD, GDC and LDC don't exactly have the same command line interface you might want to use a flag that doesn't exist on any of the other compilers.

In theory this could already be supported since Dub allows you to suffix any/most configuration options with a version identifier. Both GDC and LDC provides version identifiers to detect if they're used. But I don't know how Dub detects which version identifiers should apply

  1. Since D is changing and breaking code so frequently it might be good to be able to lock down a package for a given version of D/the compiler

/Jacob Carlborg