supporting DMD-1.016 and DMD-2.000 with the same source code

Daniel Keep daniel.keep.lists at gmail.com
Mon Jun 18 07:55:48 PDT 2007



Sean Kelly wrote:
> Thomas Kuehne wrote:
>>
>> 4) class invariants
>> ===================
>>
>> This is the only real trouble spot so far. DMD-1 uses
>>     invariant{ ... assert(...); ... }
>> however DMD-2 uses
>>     invariant(){ ... assert(...); ... }
> 
> Well that's unfortunate.  I don't suppose unittest has gotten
> parenthesis as well?
> 
> 
> Sean

I suspect this is because invariant is now a declaration, a storage
class *and* a type constructor.

	-- Daniel



More information about the Digitalmars-d mailing list