home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / pascal / 7984 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.2 KB  |  31 lines

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