Final by default?

Walter Bright newshound2 at digitalmars.com
Mon Mar 17 03:49:24 PDT 2014


On 3/17/2014 2:32 AM, Iain Buclaw wrote:
> On 17 March 2014 08:55, Walter Bright <newshound2 at digitalmars.com> wrote:
>> On 3/17/2014 1:35 AM, Iain Buclaw wrote:
>>>
>>> Right,
>>
>>
>> If so, why do all modules need the version statement?
>
> That is a question to ask the historical maintainers of cairoD.
> Having a look at it now.
> It has a single config.d with enum bools to
> turn on/off features.

If those enums are controlled by a version statement, then the version will have 
to be set for every source file that imports it. This is not the best design - 
the abstractions are way too leaky.


More information about the Digitalmars-d mailing list