Comments are not included due to differating method
declaration between Interface and Implementation unit
sections:
miamichief@gmx.de
The function declaration in the interface section must
exactly match the declaration in the implementation
section.
Otherwise the description comments are not taken
into account!
E.G. in a unit:
Interface
type
Class1 = class ...
function getDiagramGUID():WideString; constructor create
(nType:TLR_NODE_TYPE; DiagramGUID : WideString;
ElementGUID: WideString);
class function
getSingletonInstance(hooksInt: THooks=NIL): Class1;
...
Implementation
...
function
Class1.getDiagramGUID:WideString;
constructor
Class1.create(nType:TLR_NODE_TYPE;
DiagramGUID,ElementGUID: WideString);
class function
Class1.getSingletonInstance(hooksInt: THooks): Class1;
End.
-> getDiagramGUID does not, work because once it is
declared with () the other time without!
NOTE: especially this one
is annoying!!
-> create does not work, because once the parameters'
(DiagramGUID and ElementGUID) types are declared
separatedly the other time it is combined:
DiagramGUID : WideString; ElementGUID:
WideString
DiagramGUID,ElementGUID: WideString
->getSingletonInstance: in the upper declaration
hooksInt has a pre set value =NIL, but in the
implementation section this is not the case!
Anonymous
Logged In: YES
user_id=248829
Yes, it is a very annoying issue.
This check in method declaration between Interface and
Implementation was done to see overloaded methods.
I will try to do it differently, maybe by checking one by
one parameters and parameters's type.
I will keep you informed about this issue.
TridenT
Logged In: NO
Aha, this is causing why in my DLL-import unit which has
some static imported functions of my dll but also some
convinience functions implemented in the same unit only the
descriptions of the convinience functions are displayed.
The statically imported functions do have a external
parameter in the iomplementation section which of course
isn't there in the interface section.
Could you check whether the declarations only differ in
having an external parameter or not?
Logged In: YES
user_id=248829
Originator: NO
Bug reproduced.
It will be fixed in next revision.
Thx for your submission.
TridenT
Logged In: YES
user_id=248829
Originator: NO
A new method to recognize function is finished. DUnit Tests will follow.
Fixed in v0.16beta.4