home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18697 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews
  2. From: jmatthews@desire.wright.edu
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: THINK Pascal Misconceptions (was Re: Summary: THINK Pascal...)READ/NEW
  5. Message-ID: <1992Nov20.002623.5717@desire.wright.edu>
  6. Date: 20 Nov 92 00:26:22 EST
  7. References: <Bxy2Iz.1w7@news.udel.edu> <Bxy4ty.B84@world.std.com>
  8. Organization:  Wright State University 
  9. Lines: 25
  10.  
  11. In article <Bxy4ty.B84@world.std.com>, siegel@world.std.com (Rich Siegel) writes:
  12. > In Kurisoto's summary of responses to his problem (one of which is mine)
  13. > he quotes several of his respondents, some of whom provide advice which
  14. > is half-baked at best.
  15.  
  16. >>(Person E wrote)
  17. >>> TP does several things for you in the runtime environment: local (stack)
  18. >>> vars are initialized to zero; your explicit stack and memory allocations
  19. >>> get set up; there are lots of subtle differences having to do with TP
  20. >>> sitting between you and the system; your code executes in a heap zone
  21. >>> in TP's heap zone; etc.
  22.  
  23. > Mostly wrong. Local variables are not initialized to zero. Either under the
  24. > environment or standalone, local variables, except for arguments passed
  25. > in, will contain whatever random junk happens to be in the portion of
  26. > memory which corresponds to the link frame that you're using.
  27.  
  28. As Persons C, E and G, I'll have to claim two outta three ain't bad:-)
  29. Rich is right; local vars are not initialized. I must have eaten some
  30. half-baked space-potatoes or forgotten my heavy boots and floated away:-)
  31.  
  32. o----------------------------------------------------------------------------o
  33. | John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
  34. |      "Whom the gods would destroy, they first invite to program in C"      |
  35. o----------------------------------------------------------------------------o
  36.