From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-27 23:08:21 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!209.50.235.254!europa.netcrusader.net!207.103.111.5!news.voicenet.com!wesley.videotron.net!wagner.videotron.net.POSTED!not-for-mail Message-ID: <3A9CA3C9.2DD7BF75@videotron.ca> From: JF Mezei X-Mailer: Mozilla 4.76 (Macintosh; U; PPC) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later References: <87n1baae6s.fsf@prep.synonet.com> <97bm3a$7tv@gap.cco.caltech.edu> <3A99AED0.5DF07890@infopuls.com> <97cd06$hcn$1@pyrite.mv.net> <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <97hvro$hj4@freepress.concentric.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 28 Feb 2001 02:08:01 -0500 NNTP-Posting-Host: 24.202.53.146 X-Complaints-To: abuse@videotron.net X-Trace: wagner.videotron.net 983344016 24.202.53.146 (Wed, 28 Feb 2001 02:06:56 EST) NNTP-Posting-Date: Wed, 28 Feb 2001 02:06:56 EST Xref: supernews.google.com comp.os.vms:20468 comp.sys.dec:2896 Rick Cadruvi wrote: > it because I don't use it. When I do need to I always type cast or declare > things > as (char *). Anyone who faults C based on the way pointer arithmetic is > done > and the excessive type casting it causes will get NO argument from me. Whenever I am not sure of what it actually does, I end up writing a small "test.c" program that does the actual operation and I then either use debug or lots of printfs to verify that the compiler generate the right arithmetic. This is the same with bit fields/arithmetic or other constructs. What I don't like about DEC-C is that it sometimes forces me to make strange constructs to shut the compiler up even though the "illegal" constructs would be much easier to understand. I despise having to typecast. There are times where I will move a pointer to a void and then to a char just to make sure I can do real arithmetic without the compiler complaining. When working with dynamically allocated memory structures, pointer arithmetic and handling is a must.