diff options
author | dgp <dgp@noemail.net> | 2008-09-26 20:16:37 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2008-09-26 20:16:37 (GMT) |
commit | fa591dc7192ae1ba3b8cb4a6a2585106516d7daf (patch) | |
tree | 756a76460a8221b5d7928f2edc5ff71491439c93 /generic/tclOOBasic.c | |
parent | 825f672a60f7b766554f762cb720230cde2126d5 (diff) | |
download | tcl-fa591dc7192ae1ba3b8cb4a6a2585106516d7daf.zip tcl-fa591dc7192ae1ba3b8cb4a6a2585106516d7daf.tar.gz tcl-fa591dc7192ae1ba3b8cb4a6a2585106516d7daf.tar.bz2 |
TIP #323 IMPLEMENTATION (partial)
* doc/object.n: Revise standard oo method [my variable] to
* generic/tclOOBasic.c: accept zero variable names.
* tests/oo.test:
FossilOrigin-Name: 281da7a6fb7cf3102df616631642c51cfa354f99
Diffstat (limited to 'generic/tclOOBasic.c')
-rw-r--r-- | generic/tclOOBasic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclOOBasic.c b/generic/tclOOBasic.c index 9df3907..2e3868d 100644 --- a/generic/tclOOBasic.c +++ b/generic/tclOOBasic.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclOOBasic.c,v 1.10 2008/09/01 12:28:09 msofer Exp $ + * RCS: @(#) $Id: tclOOBasic.c,v 1.11 2008/09/26 20:16:39 dgp Exp $ */ #ifdef HAVE_CONFIG_H @@ -467,9 +467,9 @@ TclOO_Object_LinkVar( Namespace *savedNsPtr; int i; - if (objc-Tcl_ObjectContextSkippedArgs(context) < 1) { + if (objc-Tcl_ObjectContextSkippedArgs(context) < 0) { Tcl_WrongNumArgs(interp, Tcl_ObjectContextSkippedArgs(context), objv, - "varName ?varName ...?"); + "?varName ...?"); return TCL_ERROR; } |