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 ...
ScintillaSendMessage() -> ScintillaMessage()
ScintillaSendMessage() -> ScintillaMessage()
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 ...
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 ...
Re: ScintillaSendMessage() -> ScintillaMessage()
That's a good point, changed.
-
User_Russian
- Addict

- Posts: 1608
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: ScintillaSendMessage() -> ScintillaMessage()
In Windows there is, SendMessage_(), and the appointment of a lot like ScintillaSendMessage().USCode wrote:Now that we have CocoaMessage(), would it be more consistent to rename ScintillaSendMessage() to just ScintillaMessage()?
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(....)
CompilerEndIfIt's not worth it! This extra problems with a modification of code.
Re: ScintillaSendMessage() -> ScintillaMessage()
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.
Re: ScintillaSendMessage() -> ScintillaMessage()
Add both and mark the oldone as outdated 
The oldone only as macro.
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: ScintillaSendMessage() -> ScintillaMessage()
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.
The command would only affect the less-used Mac version of OS X and it's only been with us since 5.10.

