home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / modula2 / 1114 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.lang.modula2
  2. Path: sparky!uunet!wupost!usc!sol.ctr.columbia.edu!destroyer!ais.org!draper
  3. From: draper@ais.org (Patrick Draper)
  4. Subject: Re: m2 for scientific computation
  5. Message-ID: <Bu76no.Gq3@ais.org>
  6. Organization: UMCC
  7. References: <21407.2AA8073F@puddle.fidonet.org>
  8. Date: Mon, 7 Sep 1992 07:40:33 GMT
  9. Lines: 31
  10.  
  11. In article <21407.2AA8073F@puddle.fidonet.org> Peter.Froehlich@p100.f71.n246.z2.fidonet.org (Peter Froehlich) writes:
  12. >
  13. >Why  should I want to convert a POINTER TO INTEGER into a POINTER
  14. >TO  CHAR  anyway?  A well-designed application has (IMHO) no need
  15. >for doing this...
  16. >
  17. >By(T)e...
  18. >         Peter...
  19. >
  20. >-- THE ANSWER V2.03
  21. >
  22. >--  
  23. >uucp: uunet!m2xenix!puddle!2!246!71.100!Peter.Froehlich
  24. >Internet: Peter.Froehlich@p100.f71.n246.z2.fidonet.org
  25.  
  26. A well designed application might never need to do that, I agree. However,
  27. Modula-2 is also a *systems* programming language!
  28.  
  29. If I am programming a device that is block mapped, it might be efficient to
  30. handle my memory 32 bits (integer)) at a time. However, if I need to do
  31. other operations on that memory, it might be more efficient to use 8 bits at
  32. a time. You can see that a simple pointer conversion will allow me to do
  33. both.
  34.  
  35.  
  36. ------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------
  37. | Patrick Draper           Disclaimer:  I can't control my fingers,        |
  38. | draper@umcc.ais.org                   I can't control my toes! - Ramones |
  39. | University of Michigan                                                   |
  40. | Computer Club                We are a nation of laws, not people         |
  41. ------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
  42.