From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,5492ecb095683154,start X-Google-Attributes: gid1014db,public X-Google-Thread: 1149ec,5ae145e897512cf3 X-Google-Attributes: gid1149ec,public X-Google-Thread: 1164f8,5492ecb095683154,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-03-10 21:43:11 PST Xref: sparky comp.std.c:1476 comp.lang.c:6103 comp.sys.dec:1946 Newsgroups: comp.std.c,comp.lang.c,comp.sys.dec Path: sparky!uunet!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond From: diamond@jit345.bad.jit.dec.com (Norman Diamond) Subject: Re: Is #define A(...) (stmt1, stmt2,. ..) valid? Message-ID: <1992Mar11.051239.15580@jrd.dec.com> Followup-To: comp.lang.c,comp.sys.dec Sender: usenet@jrd.dec.com (USENET ACCOUNT) Nntp-Posting-Host: jit345 Reply-To: diamond@jit.dec.com (Norman Diamond) Organization: Digital Equipment Corporation Japan , Tokyo References: <3730@hp832.hubinf.UUCP> <630@wookie.dbaccess.com> Date: Wed, 11 Mar 92 05:12:39 GMT In article <630@wookie.dbaccess.com> steve@dbaccess.com (Steve Suttles) writes: [in reply to the posting and one poor answer]: >Both of you are correct, and both of you are incorrect. You too, Mr. Suttles. You gave useful advice to programmers who port, or prepare for portability, to non-ANSI implementations. But then: >And as an added "feature", you can get better results on VMS by leaving >out the checks. I guarantee you that if the pointer is zero, you will >be notified (Access violation etc,etc,etc). This is not generally true. The assert macro can test for a lot of logic errors that the hardware and OS cannot test for. Even some invalid operations on NULL pointers would not result in access violations, etc. It's better to use assert. >And for the record, the implementation on VAX C is definitely broken. I disagree. My copy of K&R-1 doesn't have "assert" in the index. VAX C has occasionally been known to violate K&R-1 in other ways, but not in its definition of assert. Note that the topic of VAX C is not appropriate for the comp.std.c newsgroup. [Personal opinion only.] (Then came further useful advice about porting to one non-ANSI implementation. The same advice would be useful in porting to ALL non-ANSI implementations.) >Somebody from DEC, PLEASE ask me for specific complaints about the RTL; my >list is far too big to post. And it is growing. If you have a maintenance contract with Digital, I believe that the company's opinion is that you should communicate with your Digital representative. [Even this is my personal belief; I do not speak for the company.] Even if you don't have a maintenance contract, you might ask your Digital sales representative if there is an RTL available that might help your needs. [There might be. I am not sure if there is or not.] Aside from that, I have sometimes seen Digital employees reply to postings in comp.unix.ultrix (not a lot of help to you) and sometimes comp.sys.dec. It wouldn't hurt you to try posting in comp.sys.dec, though I can't promise whether anything will happen. I've directed followups to both comp.lang.c and comp.sys.dec since I'm not sure which is more important to you. The topic has mostly drifted away from standards issues. -- Norman Diamond diamond@jit081.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it. "Yeah -- bad wiring. That was probably it. Very bad."