On 10/28/20 6:28 PM, IGotD- wrote:
On Wednesday, 28 October 2020 at 21:54:19 UTC, Jan Hönig wrote:

shared immutable x = 1;


Is there a point to add shared to an immutable? Aren't immutable implicitly also shared?

You are correct:

pragma(msg, typeof(x)); // immutable(int)

D frequently allows no-op attributes.

-Steve

Reply via email to