DMD 1.017 release
Georg Wrede
georg at nospam.org
Sat Jun 30 13:52:47 PDT 2007
Walter Bright wrote:
> I'm going to have to retreat from this. Andrei made an argument that if
> one had:
>
> struct S
> {
> static int foo;
> }
>
> S s = ...;
> assert(s.foo == S.foo);
>
> then, analogously:
>
> T t = ...;
> assert(t.init == T.init);
>
> should hold as well. Consistency is a strong argument.
Well, whatever you do, it'd be convenient to test for "equal to the init
value".
In other words, please let us compare _both_ to the "type init value" or
(in other circumstances) to the "specific type init value", depending on
our needs at the time.
More information about the Digitalmars-d-announce
mailing list