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