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-28 18:48:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed1.news.nl.uu.net!sun4nl!not-for-mail Message-ID: <3A9DB85B.5B8D9B84@infopuls.com> Date: Thu, 01 Mar 2001 02:47:55 +0000 From: Christof Brass Organization: InfoPuls X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.0.36 i586) X-Accept-Language: de 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> <3A9CA3C9.2DD7BF75@videotron.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: fuchs.cyberlink.ch!unknown@193.247.146.165 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 193.246.253.18 X-Trace: 983414748 news.ch.uu.net 178 193.246.253.18 Xref: supernews.google.com comp.os.vms:20636 comp.sys.dec:2948 JF Mezei wrote: > > 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. *Only* in C/C++.