diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-24 15:41:39 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-24 15:41:39 +0000 |
| commit | 70475e65416b72cc4d34f9bc343801f88606492e (patch) | |
| tree | f93502bd3522eb607fba9614da01d9e0b3e44aa4 /README.EXT | |
| parent | c652d24078619eb1a0e802fa5b2c6e48cf7ab14c (diff) | |
| download | ruby-70475e65416b72cc4d34f9bc343801f88606492e.tar.gz ruby-70475e65416b72cc4d34f9bc343801f88606492e.tar.xz ruby-70475e65416b72cc4d34f9bc343801f88606492e.zip | |
* class.c (rb_scan_args): Allow specifying the number of trailing
mandatory arguments right after the number of optional arguments
only if the number of leading mandatory arguments is not omitted.
* ext/socket/tcpserver.c (tcp_svr_init): Make use of it.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
| -rw-r--r-- | README.EXT | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/README.EXT b/README.EXT index 6844947fc..e5760c184 100644 --- a/README.EXT +++ b/README.EXT @@ -1081,9 +1081,10 @@ as follows: -- scan-arg-spec := param-arg-spec [block-arg-spec] -param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec +param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec / pre-opt-post-arg-spec pre-arg-spec := num-of-leading-mandatory-args [num-of-optional-args] post-arg-spec := sym-for-variable-length-args [num-of-trailing-mandatory-args] +pre-opt-post-arg-spec := num-of-leading-mandatory-args num-of-optional-args num-of-trailing-mandatory-args block-arg-spec := sym-for-block-arg num-of-leading-mandatory-args := DIGIT ; The number of leading |
