[Oberon] NW programming style

Alexander Ilin ajsoft at yandex.ru
Tue Sep 6 11:32:20 CEST 2016


Hello!

06.09.2016, 00:55, "Richard Hable" <informujo at aon.at>:
> Apples and Oranges.
>
> You are comparing the naming of three procedures doing different things
> with the naming of mouse buttons. Contrary to these procedures, all
> mouse buttons are alike--they only differ in their positions on the
> mouse. And positions are best stored as integer values.

  You are forgetting that a left-handed person would prefer to have button 3 as the primary button (being under his/her index finger).
  But number 1 is hard-coded.
  Good luck searching for that number to replace it with 3 - which would be a trivial operation with named constants, and could even be loaded from a configuration file.

---=====--- 
 Александр


More information about the Oberon mailing list