Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!columbia!garfield.columbia.edu!eppstein From: eppstein@garfield.columbia.edu (David Eppstein) Newsgroups: comp.lang.c++ Subject: more bugs Message-ID: <5005@columbia.edu> Date: Sat, 19-Sep-87 16:34:23 EDT Article-I.D.: columbia.5005 Posted: Sat Sep 19 16:34:23 1987 Date-Received: Sun, 20-Sep-87 16:03:28 EDT Sender: nobody@columbia.edu Organization: Columbia University CS Department Lines: 27 (1) Is there a good reason for the filename argument to filebuf's ctor (from ) being (char *)? I would prefer (const char *). (2) The following fragment: int y(); void z(); inline int x() { if (y()) return 1; else { z(); return 0; } } ... if (x()) ... gives the following (bogus, note the missing zero) expansion: ... if (( y ( ) ? 1 : z ( ) ) ) ... Both of these bugs, as well as the ones I reported in an earlier message, are in C++ version 1.2. -- David Eppstein, eppstein@cs.columbia.edu, Columbia U. Computer Science Dept.