Xref: utzoo comp.sys.mac.programmer:5333 comp.sys.mac:29461 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!uflorida!usfvax2!pollock From: pollock@usfvax2.EDU (Wayne Pollock) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: LSC3.0 brain damage (no it isn't!) Summary: Who is really brain damaged here? Keywords: stdio, pointers Message-ID: <1259@usfvax2.EDU> Date: 3 Apr 89 18:58:32 GMT References: <1704@ncar.ucar.edu> Reply-To: pollock@usfvax2.UUCP (Wayne Pollock) Distribution: usa Organization: University of South Florida at Tampa Lines: 27 I think you should complain about the Sun, because your example shouldn't work. A pointer is *not* an integer. It is meaningless to try to print out pointers this way-- next time cast the pointer as an integer first, or use one of the ANSI C features that lets you print a pointer with a \p (incidently, this conflicts with current use of \p to indicate a pascal type string--I hope at least a warning will be generated in future LSC). I'm only guessing, but I think that on a mac, malloc generates a handle to some storage, not a simple pointer. So the thing you kept decrementing was "*ptr", not"ptr". Naturally "ptr" doesn't change each time. (Any- body know if this is right?) In any case, you really should check these things out before calling some product "brain damaged". There are nice, polite ways to ask about a possible bug in software. I'm no lawyer but someday someone might want to sue you for such statements made publicly. How would you like people to start calling your product "Brain damaged"? What if it wasn't your product's fault but sales started to slip anyway? The right to freedom of speech entails certain responsibilites. Think twice before posting derogatory comments! Think C may have bugs but I really don't think you can consider it brain damaged. I think its a terrific product, and so do may others who have posted here previously. Wayne Pollock (The MAD Scientist) pollock@usfvax2.usf.edu Usenet: ...!{uflorida, codas}!usfvax2!pollock GEnie: W.POLLOCK