home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5886 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1018 b 

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!elroy.jpl.nasa.gov!usc!aero.org!news.aero.org!Aero.org!strauss
  2. From: strauss@Aero.org (Daryll Strauss)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: "bind"ing sockets, -ObjC, and memset....A puzzle
  5. Message-ID: <17tieoINNsr5@news.aero.org>
  6. Date: 31 Aug 92 16:47:20 GMT
  7. References: <1992Aug26.043241.2355@relief.com> <1992Aug28.190230.2670@next.cambridge.ma.us>
  8. Organization: The Aerospace Corporation
  9. Lines: 12
  10. NNTP-Posting-Host: armadillo.aero.org
  11.  
  12. In article <1992Aug28.190230.2670@next.cambridge.ma.us>, simsong (Simson L. Garfinkel) writes:
  13. |> Apparently, when you include the -ObjC flag, all stack variables are  
  14. |> initialized to 0.
  15. |> 
  16.  
  17. It would be a really bad idea to rely on that "feature." You must clear
  18. the sockaddr structure to use it. The C spec says that stack variables
  19. have unknown values. I've need heard anything different in for ObjC. So
  20. relying on the compiler to initialize variables for you is a disaster
  21. waiting to happen.
  22.  
  23.                         - |Daryll
  24.