[prev] [thread] [next] [lurker] [Date index for 2004/03/02]
On 2 Mar 2004 at 15:29, Simon Wistow wrote: > In someways it's nice but it's just all the little shit bits that are > really pissing me off today. I admit that most are because I've been > spiled with my wonderful experiences with the incomparable joy that > is Perl but here I shall detail some of the more heinous hates. > > > public: > string error(); > > private: > string error; > > > > one is a method, one is a member. Why won't you let me have both. Consider public: int error(); private: void* error; and later void *foo = object.error; are you assigning the address of the method to "foo", or the value of the member? > // we use the filename like a format > int ret = snprintf(output, 1024, format.c_str(), frame++); My pet hate with the STL was needing to call .c_str() all over the place when working with legacy APIs; the application we were converting to STL had previously used MFC, whose CString class has an "operator const char *" which just did the right thing, as long as you had a prototype in scope. Cheers, Philip -- Philip Newton <pnewton@xxx.xx>There's stuff above here
Generated at 14:02 on 01 Jul 2004 by mariachi 0.52