__gshared immutable array of immutable elements
Nicolas Sicard
dransic at gmail.com
Tue Nov 12 14:45:21 PST 2013
On Tuesday, 12 November 2013 at 20:16:31 UTC, Dicebot wrote:
> On Tuesday, 12 November 2013 at 20:09:57 UTC, Martin Drašar
> wrote:
>> Those two immutables are not redundant, because it is an array
>> of immutable chars (string), that is itself immutable.
>
> It is redundant because "immutable" is transitive. "immutable
> char[]" is equivalent.
>
> But Tango has lot of meaningless and redundant attributes (
> "final private" ;) )
That´s what I thought. So no hidden subtlety here, just
hyperprotection :)
Thanks
More information about the Digitalmars-d-learn
mailing list