Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!hplabs!otter.hpl.hp.com!otter!sfk From: sfk@otter.hpl.hp.com (Steve Knight) Newsgroups: comp.lang.misc Subject: Re: Compilers and efficiency Message-ID: <2400040@otter.hpl.hp.com> Date: 13 Apr 91 20:12:18 GMT References: <9782@mentor.cc.purdue.edu> Organization: Hewlett-Packard Laboratories, Bristol, UK. Lines: 13 Just for the sake of the record, Pop11 has infix function that does a divide & remainder at the same time. It's called "//" which is kind-of mnemonic for a divide that has two results. Pop11 is a dynamically typed language which supports the Common Lisp model for numbers (i.e. from integers through rationals & floats to arbitrary precision complex numbers.) So "//" does rather more than was asked for, really. The previous example of 20 // pi would be written in Pop11 as 20 // pi; the results would be 1.15044 and 6 Steve