Author Topic: CodeCompletion: inherit bug?  (Read 19675 times)

Offline gonboy

  • Multiple posting newcomer
  • *
  • Posts: 29
CodeCompletion: inherit bug?
« on: April 28, 2013, 05:38:15 am »
//father
class A
{
    public:
       char a;
};
//son
class B
{
    public:
       char b;
}

int main()
{
    B x;
    x.b = 12;
    x.A::a = 45; //Couldn't Complete it ".A::a"

    return 0
}

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeCompletion: inherit bug?
« Reply #1 on: April 28, 2013, 05:48:43 am »
It should be "class B : public A", but I suppose this advanced syntax is not supported anyway.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jamesboort

  • Single posting newcomer
  • *
  • Posts: 2
    • Seattle-Towncar - Channel on Coub
Seattle-Towncar - Channel on Coub
« Reply #2 on: January 13, 2026, 11:03:02 pm »
Offcourse user profile page for “seattle-towncar”, typically used for sharing curated lists/links and personal profile info. It’s a profile hub rather than a directory listing. Open: Seattle-towncar on Offcourse.
From Airport to Downtown: How Seattle-Towncar Redefines Luxury Ground... — Post Heaven https://postheaven.net/1foexyvavf

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6123
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Seattle-Towncar - Channel on Coub
« Reply #3 on: Today at 11:55:43 am »
Offcourse user profile page for “seattle-towncar”, typically used for sharing curated lists/links and personal profile info. It’s a profile hub rather than a directory listing. Open: Seattle-towncar on Offcourse.

spam reported
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.