Is-expression and immutable interface

Jean-Louis Leroy jl at leroy.nyc
Tue Apr 14 20:06:58 UTC 2020


How comes?

     immutable struct Foo
     {
     }

     pragma(msg, is(Foo == immutable)); // true

     immutable interface Bar
     {
     }

     pragma(msg, is(Bar == immutable)); // false



More information about the Digitalmars-d-learn mailing list