version(CONTRACTS) for contracts?

Bill Baxter dnewsgroup at billbaxter.com
Wed Nov 8 19:52:03 PST 2006


Derek Parnell wrote:
> On Thu, 09 Nov 2006 12:06:34 +0900, Bill Baxter wrote:
> 

>> So I think something more fine grained than class invariants is needed. 
>>   Something like version(_DContracts) would do it.
>>
>> --bb
> 
> I can do this with the next Bud. 
> 
> If "-release" is used, I can add "version=_Drelease" to the command line.
> If "-release" is *not* used, I can add "version=_Dcontracts" to the command
> line.
> If "-unittest" is used, I can add "version=_Dunittest" to the command line.
> If "-O" is used, I can add "version=_Doptimized" to the command line.
> 
> Is anyone interested in this idea? Does it need tweaking? 
> 

Sounds sweet to me.

Not sure if _Doptimized is really useful though.  But if that makes 
sense, then probably something should be done for -g too.
And what about -run?  I can see a use for that more readily than I can 
for -O or -g.

I thought I remembered posting something about a wish for a version to 
go with unittests and somebody posted some kind of patch right away.  I 
couldn't find it in the archives though.  Oh yes... it was a bug not a 
ng post.  That's why I couldn't find it:  here it is:

   http://d.puremagic.com/issues/show_bug.cgi?id=458

--bb



More information about the Digitalmars-d mailing list