home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8043 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!news.ccs.queensu.ca!dmurdoch
  3. From: dmurdoch@QueensU.CA (Duncan Murdoch)
  4. Subject: Re: Duplicate function names (in different .lib's)
  5. Message-ID: <BrvHpo.K12@knot.ccs.queensu.ca>
  6. Sender: news@knot.ccs.queensu.ca (Netnews control)
  7. Organization: Queen's University, Kingston, Canada
  8. References: <1992Jul17.063123.6492@grebyn.com> <1992Jul24.003009.10647@bronze.ucs.indiana.edu>
  9. Date: Fri, 24 Jul 1992 03:01:00 GMT
  10. Lines: 22
  11.  
  12. In article <1992Jul24.003009.10647@bronze.ucs.indiana.edu> yawei@bronze.ucs.indiana.edu (Ya-Gui Wei) writes:
  13. >In article <1992Jul17.063123.6492@grebyn.com> bittware@grebyn.com (Bittware) writes:
  14. >>I'm having a problem with duplicate function names between a commercial
  15. >>graphics library and the Borland graphics library (moveto).  
  16. ...
  17. >
  18. >   One dirty solution would be to patch one of the libraries to change
  19. >one of the names.  I don't know of a cleaner solution.
  20.  
  21. Another solution is to change to a language with a richer idea of
  22. scoping, such as Pascal or Modula-2.  In Turbo Pascal, for instance,
  23. every library (unit) could have a "moveto", and one would be the default, but
  24. you could access any of the others by specifying which library to get it
  25. from.  The only name clashes that are hard to deal with in TP are
  26. clashes between the names of units; those aren't allowed.
  27.  
  28. I don't think TP would be a particularly good choice in this case
  29. because its linker is so weak at handling foreign libraries, but  
  30. other Pascal or Modula compilers might be.
  31.  
  32. Duncan Murdoch
  33. dmurdoch@mast.queensu.ca
  34.