EndianStream needs to be reexamined!

Anders F Björklund afb at algonet.se
Sun Apr 27 23:17:00 PDT 2008


Bruno Medeiros wrote:

>>> 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
> 
> Yes, it's what they do *now*.

Glad you were vindicated in the end. Too bad the error is still there,
the above warning is from compiling the Phobos in DMD 2.013 with -w...

> But when the feature was first introduced 
> they threw a runtime error. I warned against it from the start:
> "There is a problem the moment the D subclass doesn't override all
> overloads, so that can be detected at compile time and an error issued
> right there."
> (http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=56419) 

Yeah, Walter has a preference for "runtime warnings" such as exceptions.
And since warnings are optional, you can still miss them apparently...

--anders



More information about the Digitalmars-d mailing list