Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!uflorida!novavax!twwells!bill From: bill@twwells.uucp (T. William Wells) Newsgroups: comp.lang.c Subject: Re: Another silly question Message-ID: <880@twwells.uucp> Date: 28 Apr 89 17:49:06 GMT References: <2459@nmtsun.nmt.edu> <10135@smoke.BRL.MIL> <1266@l.cc.purdue.edu> Reply-To: bill@twwells.UUCP (T. William Wells) Organization: None, Ft. Lauderdale Lines: 18 Summary: Expires: Sender: Followup-To: Distribution: Keywords: In article <1266@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: : Now suppose I am doing some serious array operations, and I have to know : whether one array buffer is longer than another. The elements are of type : long. Do I have to do this multiplying and dividing by 4 all the time? : Another example of "user-friendly" which turns out to be "user-inimical." Oh bullshit, Mr. Rubin. As usual, you are wanting PL/I++++, not C. And a compiler that reads programmer's minds. If you really don't want to do the division, maintain integer indexes, not pointers. If you think that pointer manipulation is going to give you the better code, use them. If you think that index manipulation is going to give you the better code, use those. And if you can't figure which is better, how, pray tell, do you figure the compiler will figure it out? C at least gives yo a fighting chance by giving you a choice. --- Bill { uunet | novavax } !twwells!bill