home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!m1!bevan
- From: bevan@cs.man.ac.uk (Stephen J Bevan)
- Newsgroups: comp.lang.misc
- Subject: Re: languages which allow the introduction of new operators
- Message-ID: <BEVAN.92Nov13093224@beluga.cs.man.ac.uk>
- Date: 13 Nov 92 09:32:24 GMT
- References: <veit.721491920@du9ds3> <TB06.92Nov11165010@CS1.CC.Lehigh.EDU>
- <1992Nov12.082643.8415@arb-phys.uni-dortmund.de>
- <BxLxqu.96C@mentor.cc.purdue.edu>
- Sender: newsman@cs.man.ac.uk
- Organization: Department of Computer Science, University of Manchester
- Lines: 15
- In-reply-to: hrubin@pop.stat.purdue.edu's message of 12 Nov 92 14:32:54 GMT
-
- In article <BxLxqu.96C@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
-
- Some of these allow some flexibility in expression syntax. But how
- many of these could conveniently unpack a floating point number into
- its exponent and mantissa? In particular, could you write
-
- exponent, mantissa =.U float
-
- Since you didn't explain the notation, I assume that ".U" means "unpack"
- (why the "."?). Therefore, in Haskell :-
-
- let (exponent, mantissa) = unpack float
- in ...
-
- bevan
-