User forums > Help

I have a question regarding code Completion.

(1/2) > >>

Lugaidster:

--- Code: ---typedef struct {
    int a, b;
} testStruct;

#define TESTDEFINE (*((testStruct*)0x04000008))

--- End code ---

Take the above code for example

why does the following work the way it should by showing the members of the struct:


--- Code: ---(*((testStruct*)0x04000008)). // <-- notice the dot

--- End code ---

but this does not:


--- Code: ---TESTDEFINE. // <-- notice the dot

--- End code ---

Shouldn't it work just as well?? (I'm talking about the little window that appears showing the members of the struct when you put the "." after the identifier). I know that this is a very special case but still, if the former example works why shouldn't the latter one? Anyway, I hope you can help me.

Ceniza:
I do really doubt the current implementation of Code-Completion does any kind of macro-replacement. The good news is that I'm finishing my preprocessor implementation, so it could possibly, just possibly, be used to 'complement' that plugin in the meanwhile.

JGM:

--- Quote from: Ceniza on May 19, 2008, 08:36:14 am ---The good news is that I'm finishing my preprocessor implementation, so it could possibly, just possibly, be used to 'complement' that plugin in the meanwhile.

--- End quote ---

Those are really good news! :D

golagha:
I have another question concerning code completion.

Code completion doesn't show anything about overloaded member operators. Why?

Actually we do not need to use a code like this:

T1.operator < (T2);

In fact we use it simply by:

T1 < T2;

but assume that I need to know about overloaded member operators of a class before receiving any error from compiler. of course, when I see a message like this : operator < is not implemented for object "TObject T" I understand what it means but code completion can save our time to have a quick view to all overloaded member operators.

Regards

Ceniza:
Well, keep in mind Code-Completion is work in progress. There are lots of things that the current implementation doesn't recognise. If you check the list of bugs and feature requests for Code-Completion you'll get an idea of how far from complete it is.

Navigation

[0] Message Index

[#] Next page

Go to full version