About Store Forum Documentation Contact
Donations:
243$/mo



Post Reply 
More missing Code Editor auto-completion
Author Message
aceio76 Offline
Silver Supporter

Post: #1
More missing Code Editor auto-completion
I've identified two more things that the code editor is not able to provide code autocomplete for:
1. "friend"-ed functions and classes
2. overloaded operator-> member function on classes

The first one is easy to explain.
Code:
class A
{
private:
  int var;
  friend class B;
}

class B
{
  A a;
  void func()
  {
     a.var=0;  // this will compile but CE will not autocomplete for .var
  }
}

The second is still simple but might be obscure to others:
Code:
class A
{
  Str msg="Esenthel is the best engine and platform";
}
class B
{
  A *a;
  A* operator->()C {return a;}
}
class C
{
  B operator->()C {return B();}
}
void main()
{
  C c;
  Str msg_of_a = c->msg;  // this will compile but CE will not autocomplete for ->msg
}
(This post was last modified: 01-25-2015 04:48 PM by aceio76.)
01-25-2015 04:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #2
RE: More missing Code Editor auto-completion
I think I will just keep this new set of items on this same thread, but if you want me to put it in a different thread, let me know.

Is there support for the 'final' and 'override' keywords within the Code Editor, particularly for virtual functions (although for derived classes would be handy too).

For virtual functions, there are some inherent benefits to making virtual functions 'final' especially in the case of the often derived from Game::Chr where functions like drawBlend() and the like could benefit. I know I might be preaching to the choir here, but thought I'd bring it up.
02-21-2015 04:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: More missing Code Editor auto-completion
Hi,

Thanks for reporting the issues.
The things from the first post are a bit more difficult to solve so I can't investigate this right now.
As for the 2nd post, I was thinking about doing that too, just didn't have the time. I've just added it to the roadmap though.
02-22-2015 10:30 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: More missing Code Editor auto-completion
Hi,

'final' and 'override' will be correctly processed by the Code Editor in the next release.
However it will be up to the compiler to report any conflicts.
C++11 should support this. It works on VS 2015.
11-01-2015 03:01 AM
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #5
RE: More missing Code Editor auto-completion
Thanks! This will be handy when working within CE.
11-01-2015 05:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply