home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 533 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 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: 9 Jan 1996 00:59:37 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4cselp$9dv@maureen.teleport.com>
  8. References: <jasonb.820919731@cs.uwa.edu.au> <4com6v$415@maureen.teleport.com> <jasonb.821098303@cs.uwa.edu.au> <4crfb9$djs@maureen.teleport.com> <4cro82$mrh@serpens.rhein.de>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Michael van Elst (mlelstv@serpens.rhein.de) wrote:
  13. : sschaem@teleport.com (Stephan Schaem) writes:
  14.  
  15. : > I'm sorry again , I dont see how you can program not knowing  
  16. : > the type of your variable when you use them?
  17.  
  18. : A simple analysis of previous articles should show you that
  19.  
  20. : a) the programmer might not even define the type because it is
  21. :    predefined in some header
  22.  
  23.  Yes, type CHIPREG is type UWORD for example... this do not give you an 
  24.  excuse to not know that you are working with CHIPREG variable vs UWORD. 
  25.  simple to grasp? You need to know the type when you declar, when you use.
  26.  If you swim in a daze while you write your code using the wrong type
  27.  the compiler will caught blood... 
  28.  
  29. : and
  30.  
  31. : b) the programmer doesn't care about how many bytes are used
  32. :    by the type.
  33.  
  34. : Is that too hard to grasp ?
  35.  
  36.  Who cares how many bytes in asm too?
  37.  
  38.  GLOBAL_con0_type    dc.type    0
  39.  
  40.  move.type    GLOBAL_con0,bltcon0
  41.  
  42.  in this case the type is defined has having a range of 0 to 65535.. a word
  43.  
  44.  uword    blobal_con0;
  45.  uchar    global_temp;
  46.  
  47.  Now, I assume you blanked out (since it was claimed you dont need
  48.  to know your variable type compared to asm)
  49.  
  50.  global_temp = global_con0;
  51.  
  52.  // ALOT of work done here by a clueless programmer, mixxing types
  53.     like a madman because he forgot his variable type and dont care
  54.     because 'the compiler will tell me whats wrong'.
  55.  
  56.  bltcon0 = global_temp;
  57.  
  58.  
  59.  
  60.  Happy programming...
  61.  
  62.  Stephan
  63.  
  64.