home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0101.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  911 b   |  21 lines

  1. Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
  2.  
  3. In article <17574@cs.utexas.edu> donn@hpfcrn.fc.hp.com (Donn Terry) writes:
  4. >    int execvp (const char *file, char *const argv[]);
  5. >
  6. >It was generally agreed during balloting that what really was wanted
  7. >was "const char * const argv[]".  However, ANSI C disagrees: that's
  8. >a syntax error!
  9.  
  10. This puzzled me a bit, since that is *not* a syntax error, but a bit of
  11. private correspondence with Donn cleared it up.  The problem is not that
  12. the declaration is illegal, but that `char *[]' and `const char *const []'
  13. are not assignment-compatible -- the "inner" const does not magically get
  14. ignored like the "outer" one -- so this would break backward compatibility.
  15. -- 
  16. "Maybe we should tell the truth?"      | Henry Spencer at U of Toronto Zoology
  17. "Surely we aren't that desperate yet." |  henry@zoo.toronto.edu   utzoo!henry
  18.  
  19. Volume-Number: Volume 22, Number 106
  20.  
  21.