From: SourceForge.net <no...@so...> - 2007-08-24 17:03:22
|
Bugs item #1781260, was opened at 2007-08-24 19:03 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1781260&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: 3.2.0 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Rony G. Flatscher (orexx) Assigned to: David Ashley (wdashley) Summary: USE Keyword Instruction Initial Comment: Referring to documentation rev. 655. p. 78: The documentation misses the description of the ellipsis "..." The ellipsis ("...") can be given in place of the last variable in the USE STRICT ARG statement and indicates that more arguments may follow. It allows defining a minimum amount of arguments that must be supplied or for which there are default values defined and that may be followed optionally by any additional arguments. Example: call test "one" call test "one", "two" call test "one", "two", "three" call test "one", , "three", "four", "five" exit test: procedure /* a minimum of one argument must be supplied */ use strict arg v1, v2="zwei", ... say "There are ["arg()"] argument(s); v1,v2=["v1","v2"]" do i=3 to arg() say " arg #" i"=["arg(i)"]" end say "--" return Output: There are [1] argument(s); v1,v2=[one,zwei] -- There are [2] argument(s); v1,v2=[one,two] -- There are [3] argument(s); v1,v2=[one,two] arg # 3=[three] -- There are [5] argument(s); v1,v2=[one,zwei] arg # 3=[three] arg # 4=[four] arg # 5=[five] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1781260&group_id=119701 |