summaryrefslogtreecommitdiffstats
path: root/generic/tclOOBasic.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2008-09-26 20:16:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2008-09-26 20:16:38 (GMT)
commit03fe58895ff5d2fff94410b80ecf3fd7907b7948 (patch)
tree756a76460a8221b5d7928f2edc5ff71491439c93 /generic/tclOOBasic.c
parent030aaf8733e03063daa3c730c5b258575b9386ba (diff)
downloadtcl-03fe58895ff5d2fff94410b80ecf3fd7907b7948.zip
tcl-03fe58895ff5d2fff94410b80ecf3fd7907b7948.tar.gz
tcl-03fe58895ff5d2fff94410b80ecf3fd7907b7948.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:
Diffstat (limited to 'generic/tclOOBasic.c')
-rw-r--r--generic/tclOOBasic.c6
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;
}