> > There is a story behind it: our product was shipping for hpux > and was later ported to sinix. It had some instabilities during > development (it was first developed for hpux, then the enhancements were > ported to sinix, almost in parallel). > > A colleague wrote (paraphrased) > > pointer->pointer->object.method;
Some compilers will emit something like: Warning: Statement has no side effect for expressions like this (at least, the Systems/C compiler does.) > > where he wanted > > pointer->pointer->object.method(); > > hpux CC did not say a word. Naturally, the method had desired > side effects :) > > /Marino > -- riv...@dignus.com Work: (919) 676-0847 Get your mainframe (370) `C' compiler at http://www.dignus.com To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-hackers" in the body of the message