Final by default?

Steven Schveighoffer schveiguy at yahoo.com
Sat Mar 15 05:09:10 PDT 2014


On Sat, 15 Mar 2014 04:08:51 -0400, Daniel Kozák <kozzi11 at gmail.com> wrote:

> deadalnix píše v Pá 14. 03. 2014 v 22:25 +0000:
>> On Friday, 14 March 2014 at 22:06:13 UTC, Daniel Kozák wrote:
>> > First I think have something like
>> >
>> > @disable(final,nothrow) would be the best way, but than I think
>> > about it
>> > and realize that final(false) is much more better.
>> >
>>
>> If I may, final!false . We have a syntax for compile time
>> parameter. Let's be consistent for once.
>>
>> The concept is solid and is the way to go. DIP anyone ?
>
> final!true
> final!(true)
> final(!true) oops :)

If final!true is valid, final(true) and final(!true) will not be.

-Steve


More information about the Digitalmars-d mailing list