From: <hp...@we...> - 2022-06-08 01:44:09
|
Am 07.06.2022 um 22:38 schrieb J Leslie Turriff: > On 2022-06-07 14:59:38 René Jansen wrote: >> It is a bit like CMS not closing round brackets — I cannot get used to >> that. > > It is a bit confusing; CMS is using ( as a separator, not for grouping. The way you describe it is not at all confusing. The '(' marks the end of arguments and start of options. Same with ')' since it marks the end of the options and -- in case of XEDIT as you mention it -- the beginning of parameters. If nothing follows the options, there is no need to separate it from the options. > The only time > when using a matching ) is useful is when calling an Xedit macro, where ) can be followed > by parms for the macro; e.g. > | xedit fn ft fm (profile special) parms... > which allows SPECIAL XEDIT to parse its arguments: > | parse arg . ')' ... Instead of ')' something else never part of arguments, options, parameters, younameit could be used. In an ooRexx program I use > arg cfgID '#' kyhld because 'kyhld' is in this special case not an option which all are set in the CFG file. (In fact it is an option, it's an optional "key held down" at power-up of an emulated calculator to trigger rarely used functions like changing the digit separator. On Windows '#' is not a line-end character, so I dare to use it.) Best, M. |