home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / oracle / 2562 < prev    next >
Encoding:
Text File  |  1992-12-18  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!nmr1!fogelinc
  3. From: fogelinc@nmr1.Cyanamid.COM (Carl Fogelin)
  4. Subject: Re: Pro*C
  5. Message-ID: <1992Dec17.220804.12585@tigger.jvnc.net>
  6. Sender: news@tigger.jvnc.net (Zee News Genie)
  7. Nntp-Posting-Host: nmr1.pt.cyanamid.com
  8. Reply-To: fogelinc@nmr1.Cyanamid.COM
  9. Organization: American Cyanamid Company
  10. References: <1992Dec17.195431.13161@den.mmc.com>
  11. Date: Thu, 17 Dec 1992 22:08:04 GMT
  12. Lines: 25
  13.  
  14. In article 13161@den.mmc.com, richard@crowded-house.den.mmc.com (Richard Armstrong) writes:
  15. >
  16. >I have plenty of good things to say about Oracle Pro*C. However, let me
  17. >focus on one area where I find Pro*C completely brain-dead.
  18. >
  19. [stuff deleted]
  20. >
  21. >Why doesn't the Pro*C precompiler do #define substitutions?
  22.  
  23. Because the scope of the Pro*C preprocessor would probably get out of hand.
  24. Sure, it would be nice if the Pro*C preprocessor would at least recognize 
  25. #defines which are at the top of the current module, but the c preprocessor
  26. can be much more complicated.  What about #defines found in an #include file?
  27. What about #defines which use conditional assignments (i.e., #ifdef)?  These
  28. are just a couple of complications, but if you think about it, I'm sure you
  29. can come up with more.
  30.  
  31. Yes, I agree that I wish Pro*C did the #define substitutions, but I understand
  32. why they didn't do it.  What I don't understand is why "struct"ures are not
  33. valid for host variables, but VARCHARs (which are structures) are...  8-(
  34.  
  35. -------------------------------------
  36. Carl Fogelin (fogelinc@cyanamid.com) 
  37.  
  38.  
  39.