Re: gcc oriented questions



Am 08 Aug 2001 13:28:08 -0400 schrieb Paul Davis:
> >Yep, you're right, my explanation wasn't very convincing.
> >
> >But I think for a beginner we shouldn't start with the
> >function-pointer point of view at the first place. I'll
> >try to summarize:
> 
> Well, when I started programming in C++ (this was actually after
> working on the internals of Cfront :), I could not understand why a
> ptr-to-member function was any different than any other kind of
> ptr-to-function. In fact, more than that - the distinction really
> annoyed me. So, for me personally, understanding that was really
> critical. However, everybody else's mileage may vary.

Yes, sometimes I wish the g++ extension for extracting a function
pointer from a pointer-to-member-function were standard C++. That
would make it even possible to use C-Style callbacks.

> BTW, your explanation is a good one, too.

Thanks.
Although I forgot that implicit int is no longer valid in C++ ;)

C'ya,
--Daniel





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