www.digitalmars.com         C & C++   DMDScript  

D - Module versioning and coexistence for phobos source

Walter

I'd like to suggest a versioning convention for source built into Phobos
that might (temporarily or permanently) also need to be built for another
module structure, as follows:

// from recls.d

version(Phobos)
{
  module std.io.recls;
}
else
{
  module recls;
}

Naturally this will require an update to the compiler, since it currently
balks on this with

    dmd -c -version=Windows -I. -release -inline recls.d -ofrecls.obj
    recls.d(66): Declaration expected, not 'module'
    recls.d(70): Declaration expected, not 'module'
Nov 05 2003