Menu

#353 Inappropriate association of methods with classes.

open-accepted
nobody
Interface (176)
5
2012-09-14
2009-07-29
John Tyree
No

When working with C++ and possibly other languages, the way methods are associated with classes is location dependent within the source file.

For example take class 'foo' with a method 'bar'. If the file is written like:
foo::foo () { .. } //constructor first
void foo::bar() { .. } //method after

Then the Geany side bar widget shows that 'bar' is a method of 'foo'. However if the order of the two are reversed such that the constructor comes after the method:
void foo::bar() { .. } //method first
foo::foo () { .. } //constructor after

then Geany separates the two as if foo::bar() were it's own function and the class 'foo' had no methods at all.

Discussion

  • John Tyree

    John Tyree - 2009-07-29

    headers

     
  • John Tyree

    John Tyree - 2009-07-29

    definitions

     
  • John Tyree

    John Tyree - 2009-07-29

    Example class.

     
  • Lex Trotman

    Lex Trotman - 2012-09-14

    Problem still present in Geany 1.23 (git >= c05f1bd).

     
  • Lex Trotman

    Lex Trotman - 2012-09-14
    • status: open --> open-accepted
     

Log in to post a comment.