home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / tcl / 1351 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.1 KB  |  39 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!umn.edu!sctc.com!scott
  3. From: scott@sctc.com (Scott Hammond)
  4. Subject: varargs problem in Tcl_AppendResult()?
  5. Message-ID: <1992Sep14.021944.17302@sctc.com>
  6. Organization: SCTC
  7. Distribution: na
  8. Date: Mon, 14 Sep 1992 02:19:44 GMT
  9. Lines: 28
  10.  
  11. Re: tcl6.4 on Sun4 (SunOS 4.1.2) built with 'cc'
  12.  
  13. Using a simple loop that reads single lines from the user and passes
  14. them to the same interp via Tcl_Eval(), I entered the following:
  15.  
  16.     ? proc testhis {} { uplevel 1; set x 5 }
  17.     result: ''
  18.     ? testhis
  19.     err result: 'wrong # args: should be "'
  20.     wrong # args: should be "
  21.         while executing
  22.     "uplevel 1"
  23.         (procedure "testhis" line 1)
  24.         invoked from within
  25.     "testhis"
  26.  
  27.  
  28. result is the value of interp->result.  err result is
  29. the same after error detected, followed by information
  30. from Tcl_GetVar() on errorInfo.
  31.  
  32. My concern is that the error message is truncated, which
  33. means the varargs stuff in Tcl_AppendResult() isn't working.
  34. On brief inspection it looks ok to me and appears to match
  35. the description on the SunOS man page.  I also get this if
  36. I feed it to tclTest.
  37.  
  38. Anyone run into this?
  39.