Article View: comp.lang.misc
Article #3491Re: Compilers and efficiency
From: Steve Knight
Date: Sat, 13 Apr 1991 20:12
Date: Sat, 13 Apr 1991 20:12
13 lines
959 bytes
959 bytes
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
Technical Details
Message-ID:
<2400040@otter.hpl.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!hplabs!otter.hpl.hp.com!otter!sfkReferences:
<9782@mentor.cc.purdue.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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