Importing version identifiers from another file?

Ali Çehreli acehreli at yahoo.com
Tue Apr 12 17:07:15 UTC 2022


On 4/11/22 01:57, KytoDragon wrote:

 > Is there any way to import
 > version specifiers from a separate file?

Have you tried mixing in the versions? Have one file with the versions 
in it:

   // file: 'versions'
   version = x;

Then mix it in:

   mixin (import ("versions"));

   version (x) { /* ... */ }

Seems to work for me.

Ali



More information about the Digitalmars-d-learn mailing list