On Thu, 28 Aug 2014 13:00:24 +0200, Rony <
rony.fl...@wu-wien.ac.at>
wrote:
Fine. I'm not going to debate whether this little nit is worth picking
except to say that only a pathological obsessive-compulsive of the order
of Dr. Sheldon Cooper* would not immediately understand that the commas
are NOT required.
>Your example would need to read something like:
>
> result=RxMessageBox(text [, [title] [, [button] [, icon]]]])
I'm OK with this slightly more complicated diagram, although I find it
totally unnecessary.
>Then, as you see, it is not so easy anymore to immediately grasp the syntax variants that function
>allows for.
No, I do NOT see. It's only difficult if you allow perfect to be the
enemy of good.
>A couple of years ago Jean Louis Faucher (a member of the ooRexx developer team) created nice
>looking rail diagrams for all of the ooRexx documentation, but somehow they got not picked up by the
>ooRexx development team. With the help of Google I just located his versions of the ooRexx 4.2.0
>documentations from August 2012:
><
https://dl.dropboxusercontent.com/u/20049088/oorexx/docs/trunk/index.html>. Download the PDFs and
>compare the syntax diagrams with the current ones. [Arrived at the above URL after googling and
>getting the following hit: <
https://sites.google.com/site/jfaucherfr/oorexx/syntax-diagrams>, a
>document from September 2011 giving further links that contained newer versions of his renderings.]
I find that diagram only a little better than the character-based
diagram in the Reference Manual. They are both unnecessarily complex.
>A few weeks ago David Ashley (another member of the ooRexx developer team) started out from zero to
>come up with nicer looking rail-diagrams and is in the process of finishing them. There was one
>posting on the ooRexx developer mailing list to the effect, that the EBNF the used generation tool
>defines does not allow for default values, which would be a bummer, as default values for omitted
>arguments is extremely important for the Rexx language (cf.
><
http://sourceforge.net/p/oorexx/mailman/message/32699294/>). Though, no reaction to that e-mail
>took place there, so we will need to see in the final outcome, whether default values can
>nevertheless be documented in David's syntax rail diagrams or not. No actual URL that I am aware of
>to see the updated ooRexx documentation.
Default values are easy to accommodate in the standard line syntax:
result = RxMessageBox(message, [title|"Error"], [button|"OK"], [icon])
If the syntax is too too long for one line, it can be continued in
several ways:
result = RxMessageBox(message, [title|"Error"],
[button|"OK"], [icon])
or
result = RxMessageBox(message, [title|"Error"], [flags])
flags = [button|"OK"], [icon]
Cheers
PS: The 4.1.1 documentation is riddled with errors and typos. Most of
them are fairly minor. But I find it highly ironic that the ooRexx
developers would be so obsessive about a useless syntax diagram while
leaving hundreds of actual errors uncorrected.
Here are a few examples just in the description for RxMessageBox:
Page 443
Incorrect: If a message box has a "CANCEL" button, the function returns
the 2 value if either the ESC key is pressed or the "CANCEL" button is
selected. If the message box has no "CANCEL" button, pressing ESC has no
effect.
Correct: For some incomprehensible reason, the ESC key has a variable
effect depending on what buttons are present:
CANCEL OK Result
Y -- 2
N Y 1
N N No effect
Page 443 under *title*
Incorrect: The default title is "Error!".
Correct: The default title is "Error". (No "!".)
Page 443
Incorrect: "NONE"
No icon is displayed.
Correct: "NONE" is not a valid argument. It will generate an error. The
action described is what till happen if no argument is specified.
Page 444
The *icon* descriptions are all screwed up.
The correct behavior is:
Default: No icon
STOP/ERROR/HAND: A Red button with an "X".
QUESTION/QUERY: A question mark ("?") in a white balloon.
EXCLAMATION/WARNING: An exclamation point ("!") in a yellow triangle.
INFORMATION/ASTERISK: An "i" in a white balloon.
And there is no mention of the sound and how they are tied to the
Windows settings.
That's 3 errors on just two pages for one function.
* From *The Big Bang Theory*, a sitcom.