code folding

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 14 15:08:09 PDT 2017


On 03/14/2017 02:48 PM, Inquie wrote:

 >> version (all) {
 >>     // ...
 >> }
 >>
 >> You can define your own version identifiers as well:
 >>
 >> version = some_descriptive_name;
 >>
 >> version (some_descriptive_name) {
 >>     // ...
 >> }
 >>
 >> Ali
 >
 > Oh, that might be better. I thought of versions but I didn't want to
 > have to define anything... didn't know about all.

I remembered reading about it here: ;)

   http://ddili.org/ders/d.en/cond_comp.html#ix_cond_comp.all,%20version

which includes a link to the very long list of pre-defined version 
identifiers here:

   http://dlang.org/spec/version.html#predefined-versions

Ali



More information about the Digitalmars-d-learn mailing list