User forums > Nightly builds

The 24 august 2006 build is out.

<< < (2/5) > >>

Vampyre_Dark:
Still getting random shutdown crashes and I have no clue what it is. The last working build for me was on the 19th.

bigbug:

--- Quote from: Sagrer on August 25, 2006, 01:42:04 am ---"this->" code completion is not fixed... in topic about build from 23 august - it was something about that "this->" is a bad design..... is it mean that "this->" will never show code comletion's list with class's members and this is not a bug?

--- End quote ---
If you want the code completion to show members of a class inside itself, you can use the class' name with the scope resolution operator. Here's an example:
--- Code: (cpp) ---#include <iostream>
using namespace std;

class foo
{
public:
    foo(int bar = 4711) : m_bar(bar) {}

    inline void show() const
    {
        cout << foo::m_bar << endl; // instead of this->m_bar
    }

private:
    int m_bar;
};

int main()
{
    foo f;
    f.show();
}
--- End code ---

killerbot:
there are cases where 'this->' is needed, some examples have already been given.

But be honest, in every other normal case people don't write code like that. Look around on the internet for code, you will see for yourself.

Maybe (and maybe not) Yiannis will implement also support for this-> (and while we are at it : *this.   :evil: ).
Just be patient, 1.5 weeks ago, code completion was totally broken, looks where it is now. This is an extreme improvement, let's not fuss about something like this-> .

David Perfors:

--- Quote from: MoonKid on August 25, 2006, 04:44:18 am ---At my own opinon we could argue about that, If this-> is needfull or not. I think it does not matter for an IDE.
If an IDE does not implement code-completiton like this and say indirect ("hey guys it is bad design If you want to use it") the IDE patronize it users like Microsoft Software do.

Code::Blocks should not patronize things like that to its users!

--- End quote ---

I agree, Code::Blocks has also implemented more than one code styles, so why not implementing "this->".

But I also agree with killerbot, who knows where Yiannis is workin on ;)

mandrav:

--- Quote from: killerbot on August 25, 2006, 08:51:24 am ---Maybe (and maybe not) Yiannis will implement also support for this-> (and while we are at it : *this.   :evil: ).

--- End quote ---

It's already in the code :)


--- Code: (cpp) ---{
    // TODO: handle special keyword 'this'

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version