More than one main

bearophile bearophileHUGS at lycos.com
Thu Mar 24 13:34:45 PDT 2011


Kagamin:

> you can switch on version matching the module name, or something similar that will be easy to switch in a makefile.
> 
> module modu;
> version(modu)
> void main()
> {
>   //...
> }

I have explained Walter why that's not good:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=132693

Bye,
bearophile


More information about the Digitalmars-d mailing list