home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 871 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 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: 12 Jan 1996 12:40:44 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4d5ksc$a2j@maureen.teleport.com>
  8. References: <john.hendrikx.40ka@grafix.xs4all.nl> <MQAQx*XOe@yaps.rhein.de> <kVfWx*h6f@yaps.rhein.de>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Arno Eigenwillig (arno@yaps.rhein.de) wrote:
  13. : In article <4cuhng$dmn@maureen.teleport.com>, Stephan Schaem writes:
  14.  
  15. : >  The claim was general: you can forget your variable type when you use 
  16. : >  them in C...
  17.  
  18. : Wrong. The claim was that once you have chosen a type suitable for
  19. : your needs, you don't need to know what type with which representation
  20. : it actually was, as long as you use it as you anticipated to.
  21.  
  22.  Yes, you need to keep in mind the type definition... othersize you will
  23.  write code like:
  24.  
  25.  a += b;
  26.  
  27.  and see maybe hours later when you compile that a was a VECTOR, and vector
  28.  is a strcture not a type C can handle with its operators so you should have
  29.  used a support function , and if none for ytour operation write one 
  30.  yourself.
  31.  
  32.  So, Wrong, with a += b; you need to keep in mind that you are adding 
  33.  vectors and that vectors are structure.
  34.  
  35. : >  What if clock_t is on other system a pointer to a bcpl string?
  36.  
  37. : What if the plus operator stops working?
  38.  
  39.  what if you tryed to find better argument?
  40.  
  41. : The language definition guarantees that clock_t has an arithmetic
  42. : type.
  43.  
  44.  Yes... and as a good little C programmer you are you will keep that in mind.
  45.  You will keep in mind "My variable is of type clock_t, an integer)
  46.  
  47. : > : Name an existing assembler that allows such things.
  48. : > 
  49. : >  You can write yourself [...]
  50.  
  51. : OK, so there apparently is none. As I suspected.
  52.  
  53.  true... But I never said there was one.. just that its possible to offer
  54.  #typedef to asm code
  55.  
  56. : >  I repeated myself too much already
  57.  
  58. : Indeed. Repetition without progress is a waste.
  59.  
  60.  My point was porven way to often , but with reply like "what if the
  61.  + operator stop working" is not something constructive to the discution
  62.  and specially not destructive to my argument... YOU, make me repeat myself
  63.  too often thiking at one stage the point wil go trought
  64.  
  65.  Stephan
  66.  
  67.