home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / misc / 4064 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.2 KB  |  26 lines

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