EndianStream needs to be reexamined!

Anders F Björklund afb at algonet.se
Sun Apr 27 11:54:51 PDT 2008


Bruno Medeiros wrote:

>>> Can we please have this bug be a compile-time error?  (Walter, I 
>>> wonder if you could run the exercise like you did for the class != 
>>> null where you build a compiler that flags this as a failure and see 
>>> how many errors are found?)
>>
>> I think that's a good idea. I'll give it a try.
> 
> Gotta say, told ya so.

Isn't this what the compiler warnings do ?

"warning - std/stream.d(2217): class std.stream.EndianStream Stream read 
is hidden in EndianStream"

--anders



More information about the Digitalmars-d mailing list