home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
- From: karl@NeoSoft.com (Karl Lehenbauer)
- Subject: Re: Tcl Lint?
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Date: Sat, 19 Dec 1992 18:23:10 GMT
- Message-ID: <BzIr2n.HyH@NeoSoft.com>
- Keywords: lint
- References: <1992Dec18.191930.12950@bnr.ca>
- Lines: 23
-
- In article <1992Dec18.191930.12950@bnr.ca> nicholsg@bnr.ca (Geoff Nichols) writes:
- >Are there any Tcl programs out there which can check a Tcl procedure for
- >potential run-time errors which result in something like "can't read "x":
- >no such variable"? Sorta like a Tcl lint program.
-
- I haven't heard of one.
-
- Things like "eval" makes the task problematic -- you could never be sure if
- what a program gens up and passes to eval is correct.
-
- However, it would still be desirable to have one that could do as much as
- was reasonable such as no such variable and proc and command calls with the
- wrong number of arguments. The latter would catch the most common coding
- error, I think.
-
- The thing that keeps me from trying to knock something simple out in Tcl
- is the relative difficulty of parsing Tcl procs from a Tcl proc -- square-
- brackets aren't compatible with Tcl's list operators for walking through a
- proc as a list, for example.
-
- --
- -- Email info@NeoSoft.com for info on getting interactive Internet access.
- "In a minute, I'll burp up your droid."
-