home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!sctc.com!scott
- From: scott@sctc.com (Scott Hammond)
- Subject: varargs problem in Tcl_AppendResult()?
- Message-ID: <1992Sep14.021944.17302@sctc.com>
- Organization: SCTC
- Distribution: na
- Date: Mon, 14 Sep 1992 02:19:44 GMT
- Lines: 28
-
- Re: tcl6.4 on Sun4 (SunOS 4.1.2) built with 'cc'
-
- Using a simple loop that reads single lines from the user and passes
- them to the same interp via Tcl_Eval(), I entered the following:
-
- ? proc testhis {} { uplevel 1; set x 5 }
- result: ''
- ? testhis
- err result: 'wrong # args: should be "'
- wrong # args: should be "
- while executing
- "uplevel 1"
- (procedure "testhis" line 1)
- invoked from within
- "testhis"
-
-
- result is the value of interp->result. err result is
- the same after error detected, followed by information
- from Tcl_GetVar() on errorInfo.
-
- My concern is that the error message is truncated, which
- means the varargs stuff in Tcl_AppendResult() isn't working.
- On brief inspection it looks ok to me and appears to match
- the description on the SunOS man page. I also get this if
- I feed it to tclTest.
-
- Anyone run into this?
-