April 14, 2020 Is-expression and immutable interface | ||||
---|---|---|---|---|
| ||||
How comes? immutable struct Foo { } pragma(msg, is(Foo == immutable)); // true immutable interface Bar { } pragma(msg, is(Bar == immutable)); // false |
Copyright © 1999-2021 by the D Language Foundation