www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - 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
Apr 14 2020