Re: A matter of propiety

2017-01-27 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 27 January 2017 at 16:30:14 UTC, WhatMeWorry wrote: But it seems like I'm committing some great sin by doing this. meh i see no problem with it. Just another quick question: is the module that holds the main() function just the same as any other module? It is the same as any

A matter of propiety

2017-01-27 Thread WhatMeWorry via Digitalmars-d-learn
module_common import app; // Ugly? Bad? Better way? common_func() { static if (compileTimeFlag1) codeBlockA static if (compileTimeFlag2) codeBlockB static if (compileTimeFlag3) codeBlockC } I want to have many