home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.misc
- Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!agate!rsoft!mindlink!a269
- From: Mischa_Sandberg@mindlink.bc.ca (Mischa Sandberg)
- Subject: Re: Is anyone using m4?
- Organization: MIND LINK! - British Columbia, Canada
- Date: Sat, 7 Nov 1992 08:54:40 GMT
- Message-ID: <17226@mindlink.bc.ca>
- Sender: news@deep.rsoft.bc.ca (Usenet)
- Lines: 15
-
- Yes, we use m4 as a precompiler for SQL (we use nawk as a report generator
- and for more complicated symbolic manipulation of SQL). It's useful for
- extending the standard set of in-line functions of Sybase transact/sql,
- with equivalent but gross expressions; for example, to return a numeric
- result MAX(COL1, COL2) --- the larger numeric value of two columns ---
- can be done with the expression (abs(COL1-COL2)+COL1+COL2)/2); so we
- define(`MAXOF', `...'). The only problem we've had so far has been working
- around the reserved word "index", which is also an M4 intrinsic function.
- --
- Mischa Sandberg ... Mischa_Sandberg@mindlink.bc.ca
- or uunet!van-bc!rsoft!mindlink!Mischa_Sandberg
- *-*-*-*-*-*-*-*-*-*-*
- Engineers think equations are an approximation of reality.
- Physicists think reality is an approximation of the equations.
- Mathematicians never make the connection.
-