home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v3 / text0016.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.3 KB

  1. Date: Wed, 13 Nov 85 17:02:39 est
  2. From: Kee Hinckley <harvard!wanginst!apollo!nazgul>
  3.  
  4. In article <3430@ut-sally.UUCP> you write:
  5. > Date: 06 Oct 85 18:36:07 +1000 (Sun)
  6. > >From: Robert Elz <munnari!kre@seismo.CSS.GOV>
  7. ...
  8. > I suggest deleting all of the constants, and instead specifying
  9. > a library routine, which when handed a name defined in <limits.h>
  10. > will return the associated constant.
  11.  
  12. One problem with this is that a piece of code may want to #if off of
  13. particular constants.  For instance, if I discover that the amount
  14. of memory I have is too small, and I don't have virtual memory then
  15. I might want to use temporary files.  This could be all handled 
  16. automatically by using #if's in the code if I could reference a
  17. constant, but it would not work out nearly as well if I had to
  18. make that kind of decision at runtime.  I tend to agree with the
  19. other responses.  The problems that are introduced by limits.h
  20. almost all relate to binary portability, and binary portability
  21. is not a concern for the standard.
  22.  
  23.                                        Kee Hinckley
  24.                                        User Environment
  25.                                        Apollo Computer
  26.                                        ...decvax!wanginst!apollo!nazgul
  27.  
  28. Volume-Number: Volume 3, Number 17
  29.  
  30.