PDA

View Full Version : Odd Delphi hint



chronozphere
09-03-2011, 02:27 PM
Hey,

I'm curious if you know a good answer to this...

Delphi gives me the following hint:



[DCC Hint] nasha_application.pas(46): H2365 Override method TNashaApplication.OnUpdate should match case of ancestor TEventListener.onUpdate


I thought Delphi was not case sensitive. :o Does anybody know why delphi wants me to fix that?

:)

Traveler
09-03-2011, 03:19 PM
Just a guess but perhaps it is because of cross OS support?

edit: A similar question has been raised here: https://forums.embarcadero.com/message.jspa?messageID=245761
The idea is that it's because of .Net...

DarkBow
11-03-2011, 03:35 PM
I think Wayne Niddery's answer is very good in that regard.


<snip text>If it were actually case-insensitive, it would be an error instead of just a warning.<snip text>

Anyway, I dearly hope Delphi/Pascal never goes case-insensitive. It is one of the things I hate in C++, Java and the like. :)