shared - i need it to be useful
jmh530
john.michael.hall at gmail.com
Mon Oct 15 20:54:12 UTC 2018
On Monday, 15 October 2018 at 20:44:35 UTC, Manu wrote:
> snip
>
> Are you saying `is(immutable(int) == shared) == true)` ??
From the spec:
"Applying any qualifier to immutable T results in immutable T.
This makes immutable a fixed point of qualifier combinations and
makes types such as const(immutable(shared T)) impossible to
create."
Example:
import std.stdio : writeln;
void main()
{
writeln(is(immutable(int) == shared immutable(int)) == true);
//prints true
}
More information about the Digitalmars-d
mailing list