home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0094 < prev    next >
Encoding:
Text File  |  1982-03-26  |  1.6 KB  |  37 lines

  1. Autzoo.1511
  2. net.bugs.v7
  3. utcsrgv!utzoo!henry
  4. Thu Mar 25 22:46:09 1982
  5. (unsigned)char again
  6. I should have been clearer about a couple of points in my recent
  7. notes about (unsigned)c in net.bugs.v7.  The interpretation of casts
  8. as semantically equivalent to assignment to a temporary is straight
  9. from Dennis Ritchie (as of Santa Monica USENIX two months ago) and
  10. is therefore the Official Word.  To my mind this supersedes Hans
  11. Spiller's paper.  Dennis also does not seem to agree with Hans's
  12. idea of always making char signed on all machines;  what Dennis said
  13. in my presence was about what I'd always thought his view was, i.e the
  14. signed nature of char on the 11 is a lamentable historical accident
  15. that should not be blindly imitated.
  16.  
  17. [Dennis, I apologize if I am misrepresenting your views.  I'm working
  18. from notes made in the evening about conversations during the day.]
  19.  
  20. Dennis was not sure whether the definitive interpretation of casts
  21. had made it into the 3.0 compiler.  Hans's paper indicates it didn't.
  22.  
  23. Who's right?  I dunno.  Making casts systematically equivalent to
  24. assignment seems a good idea to me;  it gives them an exact definition
  25. for the first time and eliminates needing two sets of conversion rules.
  26. I do wish my compiler had unsigned char, though.  Whether char should
  27. be considered signed in future implementations is less clear.  My own
  28. view is that they ought to have been unsigned from the beginning, and
  29. given that they weren't, any code which relies on EITHER interpretation
  30. is wrong and unportable.
  31.  
  32. If there is interest in further discussion of this, please mail to me
  33. and I'll summarize for the network.
  34.  
  35.                     Henry Spencer
  36.                     decvax!utzoo!henry
  37.