RE: Callbacks and Signals works with Classes?



From: Paul Davis <pbd Op Net>

> this is member function. C++ member functions are not, and never have
> been, interchangeable with regular C functions. this is a common
> confusion among relatively new C++ programmers (i suffered from it
> myself many years ago).

Hey! Where was this email 2minutes ago when I sent mine?? ;)))
So... I've been suffering this confusion also...

> the "static" keyword makes the member function into something
> equivalent to a regular C function.

I've been using static callbacks all the time and thereby I haven't noticed
the problem.
Learning something new every day... ;)

See you





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]