home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / modula2 / 1058 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  3.0 KB

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!chx400!urz.unibas.ch!lucy.ifi.unibas.ch!news
  2. Newsgroups: comp.lang.modula2
  3. Subject: Re: m2 for scientific computation
  4. Message-ID: <1992Aug26.062611.5114@urz.unibas.ch>
  5. From: frank@ifi.unibas.ch (Robert Frank)
  6. Date: Wed, 26 Aug 1992 06:26:11 GMT
  7. Reply-To: frank@ifi.unibas.ch
  8. Sender: news@urz.unibas.ch (USENET News System)
  9. References: <BtK7wI.MF3@ais.org>
  10. Organization: Institut fuer Informatik
  11. Nntp-Posting-Host: woodstock.ifi.unibas.ch
  12. Lines: 60
  13.  
  14. In article <BtK7wI.MF3@ais.org>  writes:
  15. > In article <1992Aug25.170550.6706@sequent.com> tima@sequent.com (Timothy Alan  
  16. Anderson) writes:
  17. > >
  18. > >Modula2 is dead. It's a shame! I was just telling someone after looking at
  19. > >a C++ example, "Luckily I learned Modula-2 first. I do all this stuff
  20. > >allready, I just have to learn a different syntax".
  21. > >
  22. > >And let's all thank the Ada-2 folks for nailing the coffin shut...
  23. > >
  24. > >tima@sequent.com
  25. > Right on, although Modula-2 is very much alive in many parts of the world,
  26. > in the United States, it is dead. I too am glad that I learned M-2 before I
  27. > learned C. I use many of the same principles I learned with M-2 in my C
  28. > programming.
  29. > One of the biggest complaints I stil have with M-2 is that the type checking
  30. > is *too* strict.
  31. > Why should I have to assign a pointer to an intermediate generic pointer,
  32. > when I all I want to do is convert the type of my pointer?
  33. >
  34. Err, type casting is also possible in Modula-2! 
  35. > i.e.
  36. > wordpointer = integer pointer;
  37. > bytepointer = wordpointer;
  38. > character pointer= bytepointer;
  39.  
  40. A good compiler should digest the following:
  41. character pointer = ADDRESS(word word pointer);
  42.  
  43. Where 'word pointer' is simply casted (not converted) to type ADDRESS which is  
  44. asignable to all pointers.
  45. > vs. C's   character pointer = (char *) integer pointer;
  46. > Oh well. I loved M-2 very much, except for the typechecking details. I am
  47. > thankful that it taught me good style, but for me, M-2 will be a 'teaching'
  48.  
  49.  .. let alone the syntacticall nesting of procedures...
  50.  
  51. > language, just like it's grandfather language, Pascal.
  52. > ------------------////////////////////\\\\\\\\\\\\\\\\\\\\------------------
  53. > | Patrick Draper           Disclaimer:  I can't control my fingers,        |
  54. > | draper@umcc.ais.org                   I can't control my toes! - Ramones |
  55. > | University of Michigan                                                   |
  56. > | Computer Club                We are a nation of laws, not people         |
  57. > ------------------\\\\\\\\\\\\\\\\\\\\////////////////////------------------
  58.  
  59. --
  60. Robert Frank                         tel. + (061) 321 99 67                 
  61. Institut fuer Informatik             fax  + (061) 321 99 15                 
  62. University of Basel, Switzerland                                            
  63. Mittlere Strasse 142      rfc822: frank@ifi.unibas.ch (NeXT mail accepted)  
  64. CH-4056 Basel          X400: S=frank;OU=ifi;O=unibas;P=switch;A=arcom;C=ch
  65.                    ( if all fails try frank@urz.unibas.ch )
  66.