Re: Core bug, and ebnc bug when handling the core bug

Karine Proot <[email protected]> Tue, 23 Mar 2004 19:18:26 +0100
Newsgroups gmane.network.everybuddy.devel
Message-ID <1080065906.2462.14.camel@gelydh>
On Sun, 2004-03-21 at 17:15, Cory McWilliams wrote: 
> This kind of thing works fine for me.
> 
> class Tab
> {
> 	/* ... */
> 	Tab *getPrevious() const;
> 	/* ... */
> };
> 
> Tab *Tab::getPrevious() const
> {
> 	/* ... */
> }
I am very surprised it works for you. Somebody explained to me that the
const is strongly enforced in C++. If you are going to return a 
pointer to a member from a const method, it has to be const. So I have
to write:
   const Tab *getPrevious() const;

but then, I get many
   invalid conversion from `const Tab*' to `Tab*'

so I have to decide now if it's worth it... if I don't do it now it will
be even more painful later.


> You might want some dependency checking in your Makefile, so if windows.h 
> changes, windows.cpp and everything that uses it gets recompiled.
> 
> ebnc : $(OBJECTS) dep
> 
> ...
> 
> dep :
>         @echo > .deps
>         @for i in $(SRC); do gcc -MM $$i >> .deps; done
> 
> -include .deps
You teach me something, usually I write dependencies in the Makefile,
didn't thought it wouldn't understand by itself :) Now the only strange
thing is that if I compile twice, the second time it will redo the
linking.
And what is the -MM option for ?

> One last thing...at the top of main.cpp...I want to be able to run 
> remotely. :)
Thanks for the patch, applied.

> I can't wait until you get group chats working.  Then I'll probably use ebnc a 
> lot more.  Keep up the good work.
Well it's building up as I also badly need group chats. I'm happy to
hear I have some users !

Karine