Re: adress of member function (was RE: [Dev-C++] differnece between system pause and cin.get())
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2003-02-18 09:12:55
|
-------Original Message-------=0D =0D From: Jaap de Wolff=0D Date: =D4=F1=DF=F4=E7, 18 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 11:07:46= =F0=EC=0D To: Dev-C++ Mailing List=0D Subject: adress of member function (was RE: [Dev-C++] differnece between system pause and cin.get())=0D =0D =0D =0D =3D=3D> No, no, no. Try assigning a member function to a pointer for a re= gular=0D function. Try to print the "address" of a member function. The standard d= oes=0D not restrict how member functions are implemented, only that they cannot = be=0D expected to be regular functions. Usually, member functions are called=0D through an offset of an array.=0D =0D =3D=3D=3D=3D=3D> Yes, you can assign a member function to a member functi= on pointer=0D The following program demonstrates it:=0D =0D =3D> Only that i said we cannot assign the "address" of a member function= to a regular (non-member) function pointer.=0D =0D =3D> So basically i agree with what you said.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |