version and debug statements

Tom ihate at spam.com
Thu May 11 18:20:49 PDT 2006


Walter Bright escribió:
> Ameer Armaly wrote:
>> What if it were across multiple files, or some other particularly 
>> large but modular project; I'm not saying it couldn't be done, only 
>> that it looks bloated.  I agree with you that multiple bool operators 
>> might be pushing things a bit, but a simple not operator would IMO 
>> make things efficient enough to where the rest of that wouldn't matter 
>> as much. 
> 
> For multiple files, the idea is to abstract the feature out into its own 
> module rather than embedding it.

My 2 cents: it's not about being a good programming practice, it's about 
enough flexibility. I'm for the "version (!VERSION)". It'll not kill 
anyone though you can discourage the misuse of it.

JMHO

--
Tom;



More information about the Digitalmars-d mailing list