Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!husc6!bloom-beacon!mit-eddie!uw-beaver!uw-june!pardo From: pardo@june.cs.washington.edu (David Keppel) Newsgroups: comp.lang.c++ Subject: Re: operator precedence question Summary: C backwards compatability Message-ID: <5335@june.cs.washington.edu> Date: 20 Jul 88 17:57:32 GMT References: <36592@linus.UUCP> Reply-To: pardo@cs.washington.edu (David Keppel) Organization: U of Washington, Computer Science, Seattle Lines: 13 [ Tried e-mail, but it bounced on 3 different addresses. *sigh* ] In article <347@gt-eedsp.UUCP> baud@gteedsp.gatech.edu writes: >[ ... int i=0, t=s; ... Why is this not char *t = char* s? ] Because C++ is backwards compatible with C, and the C declaration rules require that statement to declare two integers. Actually, makes sense. G++ complains, however, if you write: t=s, int i=0; which is too bad. ;-D on ( top 3 US $ military aid: Israel, Egypt, Turkey ) Pardo