version and debug statements

Ameer Armaly ameer_armaly at hotmail.com
Thu May 11 13:19:57 PDT 2006


"Derek Parnell" <derek at psych.ward> wrote in message 
news:op.s9d3gilp6b8z09 at ginger...
> 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.
>
Just a random thought, but what about moving at least some of the project 
functionality of build directly in to the compiler; have it compile all 
current directory imports and link them together.  If -c is supplied, then 
the compiler would compile them only as opposed to linking, facilitating 
flexible build processes.  An advantage of this sort of approach is that the 
compiler already needs to know all about imports and locations, so the 
logical extension of that idea would be to have the compiler act on them. 
This is just something I came up with randomly while reading this thread; I 
don't know whether or not it's been proposed before.
>
> -- 
> Derek Parnell
> Melbourne, Australia 





More information about the Digitalmars-d mailing list