home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
- From: karl@NeoSoft.com (Karl Lehenbauer)
- Subject: Re: variable argument procedures.
- Organization: NeoSoft Communications Services -- (713) 684-5900
- Date: Mon, 07 Sep 1992 17:18:29 GMT
- Message-ID: <1992Sep07.171829.19681@NeoSoft.com>
- References: <1992Sep1.213654.13684@osf.org> <Btx6Fw.Fs3@cs.psu.edu>
- Lines: 16
-
- In article <Btx6Fw.Fs3@cs.psu.edu> mchen@groucho.cs.psu.edu (Michael Chen) writes:
- > Sure... try proc foo {args} { puts stdout $args }.
- > Basically, whenever you put args in the parameter list, it takes the values
- >in that position in beyond, makes them into a list, and sticks it in args.
-
- ...and to amplify this a bit, required arguments can still be specified
- explicitly, as in:
-
- proc fprintf {fileHandle args} { ... }
-
- In the above case, an argument for fileHandle must be present, then
- zero or more additional arguments come in as a list through "args".
- --
- -- Email info@NeoSoft.com for info on getting interactive Internet access.
- You will now awaken feeling relaxed and refreshed, remembering everything
- you've read except the details of the Omega contingency plan.
-