Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!ai-lab!wheat-chex!tk From: tk@wheat-chex.ai.mit.edu (Tom Knight) Newsgroups: comp.arch Subject: Re: standard extensions Message-ID: <13604@life.ai.mit.edu> Date: 28 Feb 91 03:40:38 GMT References: <6049@mentor.cc.purdue.edu> <3381.27c548c3@iccgcc.decnet.ab.com> <46168@mips.mips.COM> Sender: news@ai.mit.edu Organization: MIT Artificial Intelligence Laboratory Lines: 24 >In article <3381.27c548c3@iccgcc.decnet.ab.com> herrickd@iccgcc.decnet.ab.com (daniel lance herrick) writes: >What has frosted me about the languages is that the arithmetic >operators are all single valued. I usually want the quotient >and remainder from a division. I have to tell the compiler to >give me the quotient and then tell it to give me the remainder. >It might be smart enough to notice that it gets both of them in >one machine operation, but if it is, it is only undoing bad language >design. Of course Common Lisp has had just such a function since at least the early 80's. In fact, you get your choice of how to treat the dividend... floor, ceiling, or truncate. But we all know that Lisp isn't a real language 8-].