version and debug statements

pragma pragma_member at pathlink.com
Thu May 11 07:45:35 PDT 2006


In article <op.s9d3gilp6b8z09 at ginger>, Derek Parnell says...
>
>On Thu, 11 May 2006 19:32:07 +1000, Don Clugston <dac at nospam.com.au> wrote:
>
>
>> Since "static if" is now legal at module scope, it's now practically a  
>> superset of "version". So it shouldn't be very complicated to move some  
>> of the functionality across. (There's a problem with using 'static if'  
>> instead of 'version' : if there's an 'import' statement bracketed by a  
>> static if, potentially you have to compile the program to find out which  
>> files are included. Obviously 'build' can't cope with that).
>
>And I don't want to make Build be a compiler too ;-) So I don't think it  
>will ever try to execute static if statements.

I'll second that.  

Its also bad enough that any ddoc processing tool has to navigate version
statement on top of comments and declarations.  Adding the complexity of static
if() would *really* overcomplicate things.

- EricAnderton at yahoo



More information about the Digitalmars-d mailing list