Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!samalone From: samalone@athena.mit.edu (Stuart A. Malone) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C Suggestions Message-ID: <1990Sep18.132308.25879@athena.mit.edu> Date: 18 Sep 90 13:23:08 GMT References: <695@sun13.scri.fsu.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: Massachusetts Institute of Technology Lines: 18 In article <695@sun13.scri.fsu.edu> pepke@gw.scri.fsu.edu (Eric Pepke) writes: >Here is a suggested improvement for that equisite compiler, THINK C: > >Have a check box in the options which causes string literals to be type >unsigned char * rather than char * by default. It helps if one uses >unsigned char * in one's prototypes a lot. I second this suggestion, with one modification: that the check box should ONLY affect string literals that start with "\p...". These strings are already being handled special by the compiler. Since the whole purpose of this construct is to produce Pascal strings, the result should be of type StringPtr. (The truth is, I wouldn't care if there were NO check box. It would be fine by me to make the change unconditionally. I realize that this would break some existing code, but I'd rather have the compiler's type checking work for me, rather than against me.) --Stuart A. Malone samalone@athena.mit.edu