home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 976 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: PPC compilers
  5. Date: 13 Jan 1996 14:52:04 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: world
  8. Message-ID: <4d8guk$sjl@maureen.teleport.com>
  9. References: <john.hendrikx.40ka@grafix.xs4all.nl> <4b77tq$htp@serpens.rhein.de> <MQAQx*XOe@yaps.rhein.de> <4bqhnf$6g5@sunsystem5.informatik.tu-muenchen.de> <jasonb.820051107@cs.uwa.edu.au> <4c9i2l$h3i@sunsystem5.informatik.tu-muenchen.de> <4cf0ep$233@ra.i
  10.  <4ck37m$g07@maureen.teleport.com> <4cs8ce$ljg@ra.ibr.cs.tu-bs.de> <4cujve$dmn@maureen.teleport.com> <4d43cq$ifg@ra.ibr.cs.tu-bs.de>
  11. NNTP-Posting-Host: linda.teleport.com
  12. X-Newsreader: TIN [version 1.2 PL2]
  13.  
  14. Lars Duening (duening@ibr.cs.tu-bs.de) wrote:
  15. : I still don't need to know or care about the _implementation_ and the
  16. : _size_ - and that's what this discussion was about.
  17. : Nobody denies that knowing the other type properties is still
  18. : necessary (more or less).
  19.  
  20.  I never said you have to know the _size_ of the type in bits.
  21.  
  22.  I never mentioned _implemetation_, only talked about the design process
  23.  of the code... when you the programmer think, and convert its logical
  24.  thought into the C language.
  25.  
  26. : I usually try to outsmart the compiler, but should I fail it's nice
  27. : to know that the program won't go gaga.
  28.  
  29.  I never said typechecking was a negative side of the C language.
  30.  
  31.  But its not 100% full proof. my C and ASM program do some form of type
  32.  checking at runtime level (debug on, structure type checking). And If you 
  33.  label your variable, its alot harder to make typos and not see them.
  34.  
  35.  I only jump into this discution because I saw
  36.  
  37.   1) move.w    (a0)+,(a1)+  is better then C because I know I copy 16 bit
  38.   2) a++ = b++             is better because I dont need to know my type
  39.                  definition
  40.  
  41.  And responded basicly with, its unwise to write code without knowing your 
  42.  variable type, and your type definition. And I dont see how you can write
  43.  code that way relying on the compiler to tell you where you mix incompatible
  44.  type.
  45.  
  46.  What came latter is argument with example to prove otherwise, and I 
  47.  use the same example given to prove my initial statement. Even if in some
  48.  case it does not matter to even know the type definition because you wont
  49.  do much with the variable but maybe clear it for a parameter in a support
  50.  function, it doesn't show that my origninal statment is untrue.
  51.  
  52.  Stephan
  53.