Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Curious bug with C++



I noticed a curious bug in the list Xcode provides with all the methods and functions implemented in a .cpp file.

if I declare a method like this

class X
{
    ...
    void myMethod(int x, int y = 0);
    ...
};

in the header file, then implement it as follows in the .cpp file

X::myMethod(int x, int y /* = 0*/)
{
    Y->doSomething();
    Y->doSomethingElse();
}

the list shows two times "F() doSomething" (in italics) instead of "M () X::myMethod"

if I remove the /* = 0*/ or take it out of the parenthesis the list magically get right.

of course this is nothing serious, but should be fixed.

regards
Davide

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.