ScintillaSendMessage() -> ScintillaMessage()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

ScintillaSendMessage() -> ScintillaMessage()

Post by USCode »

Now that we have CocoaMessage(), would it be more consistent to rename ScintillaSendMessage() to just ScintillaMessage()?
Really a minor point and Fred is very good at command naming consistency, but it seems like this would be more consistent ... and slightly less typing too ... :wink:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ScintillaSendMessage() -> ScintillaMessage()

Post by Fred »

That's a good point, changed.
User_Russian
Addict
Addict
Posts: 1520
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: ScintillaSendMessage() -> ScintillaMessage()

Post by User_Russian »

USCode wrote:Now that we have CocoaMessage(), would it be more consistent to rename ScintillaSendMessage() to just ScintillaMessage()?
In Windows there is, SendMessage_(), and the appointment of a lot like ScintillaSendMessage().
If we follow your logic, I am against renaming. After all PB under Windows use much more often than for MacOS X.

And imagine how much you will have to modify the code, and for compatibility with previous versions, you will need to use conditional compilation!

Code: Select all

CompilerIf #PB_Compiler_Version <520
  ScintillaSendMessage(....)
CompilerElse
  ScintillaMessage(....)
CompilerEndIf
And all for what? Because CocoaMessage in MacOS X? Delirium!
It's not worth it! This extra problems with a modification of code.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: ScintillaSendMessage() -> ScintillaMessage()

Post by Fred »

After some thought, I think it doesn't worth it as well even if this command isn't correctly name (it should have been SendScintillaMessage()). Anyway, not a big deal here.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: ScintillaSendMessage() -> ScintillaMessage()

Post by ts-soft »

Add both and mark the oldone as outdated :wink:
The oldone only as macro.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: ScintillaSendMessage() -> ScintillaMessage()

Post by USCode »

How about changing CocoaMessage() to CocoaSendMessage() then?
The command would only affect the less-used Mac version of OS X and it's only been with us since 5.10.
Post Reply