home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / pascal / 6827 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.9 KB

  1. Xref: sparky comp.lang.pascal:6827 comp.object:4297
  2. Newsgroups: comp.lang.pascal,comp.object
  3. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!news.funet.fi!network.jyu.fi!sakkinen
  4. From: sakkinen@jyu.fi (Markku Sakkinen)
  5. Subject: Re: BP/TP OOP is missing something...
  6. Message-ID: <1992Nov23.070908.141@jyu.fi>
  7. Organization: University of Jyvaskyla, Finland
  8. References: <1992Nov18.104536.9985@jyu.fi> <dmurdoch.284.722095796@mast.queensu.ca> <1992Nov20.135804.8752@ida.liu.se>
  9. Date: Mon, 23 Nov 1992 07:09:08 GMT
  10. Lines: 29
  11.  
  12. In article <1992Nov20.135804.8752@ida.liu.se> c89ponga@odalix.ida.liu.se (kand. Pontus Gagge) writes:
  13. > ...
  14. >>>I would guess that good Pascal implementation may also initialise
  15. >>>pointer variables to NIL so that using them before assignment
  16. >>>will not cause catastrophic effects.
  17. >
  18. >>On a PC in "real" mode, NIL is likely the most catastrophic value to 
  19. >                                                ^^^^^^^^^^^^
  20. >>initialize a pointer to :-).  TP doesn't initialize pointers, but at 
  21. >>least one TP clone (Pascal+ from Stony Brook) does.
  22. >
  23. >In case someone misses the implicit irony, let me point out the obvious:
  24. >the best errors are those that generate the worst cataclysms. This makes
  25. >them sort of hard to miss...
  26.  
  27. IMO, it is a bad and unsafe Pascal compiler that does not support
  28. the run-time detection of dereferencing NIL, even as an option.
  29. I realise that such detection is too expensive on some unsophisticated
  30. processor architectures to be always done.
  31.  
  32. ----------------------------------------------------------------------
  33. Markku Sakkinen (sakkinen@jytko.jyu.fi)
  34.        SAKKINEN@FINJYU.bitnet (alternative network address)
  35. Department of Computer Science and Information Systems
  36. University of Jyvaskyla (a's with umlauts)
  37. PL 35
  38. SF-40351 Jyvaskyla (umlauts again)
  39. Finland
  40. ----------------------------------------------------------------------
  41.