home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!email!ps1.iaee.tuwien.ac.at!Sorokin
- From: Sorokin@ps1.iaee.tuwien.ac.at (Sorokin Zhenya)
- Subject: Re: untyped vars
- Message-ID: <Sorokin.51.726596786@ps1.iaee.tuwien.ac.at>
- Lines: 17
- Sender: news@email.tuwien.ac.at
- Nntp-Posting-Host: pc77.iaee.tuwien.ac.at
- Organization: Inst. of General Electronics and Electroengeneering, TU Vienna
- References: <34921@adm.brl.mil>
- Date: Sat, 9 Jan 1993 16:26:26 GMT
- Lines: 17
-
- In article <34921@adm.brl.mil> ATURNER@rcnvms.rcn.mass.edu (Alan Turner) writes:
- >
- >I am curious - TP allows for untyped vars as in parameter lists:
- >
- >ex: procedure something(a : word; b: byte; var c)
- > ^^^^^
- >I would like to know of some wonderful uses for such a thing in addition
- >to comparing the size of two variables as in TP60.man pg 107-108.
- >
-
- I'd like to add: from all my experience using a pointer instead of untyped
- variable (it is actually a blank pointer) always made program more readable,
- produced less errors and allowed compiler to help me to debug the program.
- To my mind, untyped var should be condemned as "bad style", like goto
- statement (although useful at optimization stage).
-
- Sincerely,
-