Summary: | Modifying declaration and definition in the same widget. | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Steven T. Hatton <hattons> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED DUPLICATE | ||
Severity: | wishlist | CC: | bluedzins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Steven T. Hatton
2004-08-22 00:45:54 UTC
Hey! That's not fair! The stupid thing sent itself before I finished. All I did was hit the space bar a few times. Anyhow, to make a long story short. the declaration of MyClass{...}; (technically that is a definition) would result in the instantiation of a runtime object in kdevelop representing the class. // in header MyClass{ void foo(); } // in source void MyClass::foo(){...} would be treated as a single object and member of the object representing the class. The aspects that differ could be glued together as needed. For example, the qualifier doesn't appear in the declaration of a member function, only in the definition (implementation). It could be treated as a separate chunk of data from the type name, function name, parameter list, cv-qualifiers, etc. Certain items need to be bound together, for example, the name of the function must be identical in both the header and source, I see no problem in enforcing an exact correspondence between parameter names in the declaration and definition, so long as there is an override mechanism available for cases where people would rather modify the code idiosyncratically and not rely on the IDE to synchronize things for them. As I hinted above, I'm sure all this is easier said than done. I just thought I'd try to get folks thinking along these lines. |