🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16578

Re: Punteros a funciones y métodos

#16578
From: batsman batsman
Date: Wed, 05 Apr 2000 00:00
39 lines
2328 bytes
-----BEGIN PGP SIGNED MESSAGE-----


    >>>> El Wed, 05 Apr 2000 17:03:51 +0200, un alien�gena
    >>>> intent� hacerse pasar por webmaster MTG,
    >>>> y escribi� en es.comp.os.linux.programacion:

>Buenas a todos/as (por si alguien se ofende ;)
>
>Me gustar�a saber c�mo se puede apuntar un puntero a funci�n a un m�todo
>dentro de un objeto. Asumiendo que se puede hacer, claro.

No creo que puedas... los m�todos en cada clase reciben un primer argumento
impl�cito, el puntero al objeto con el que est� trabajando (this). 

Puedes definir una funci�n como friend y usar un puntero a �sta.

- -- 
              _           _                             
             | |__   __ _| |_ ___ _ __ ___   __ _ _ __  
             | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
             | |_) | (_| | |_\__ \ | | | | | (_| | | | |
             |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|

             Real email: batsman dot geo at yahoo dot com

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Public key via email: send mail with Subject: [PGPKEY]

iQEVAwUBOOuJe70Y27yr0iefAQEQZgf/bbmnWUAfi1D3J+WCnZFQJWML1TuKyyIW
HM2tdo3Ei3YG28Lsgfyz/0pn2IjWJXVt3zld80EY5tAoSjJtmUyiS+tR2nBj0PPx
qtXojf7cmDe01DM98SN/D3EeKDDxVCQH/QIamDmITh0fEh9OpwywJt6h010rhgI7
V/KHQcMPRhZ3KzZEQ4NpEK1yUWI0ar3Ne1LVSrBBB8xhxpmqR/4inTPlt/VtWqw6
Zq7M8jpUvtFXgihwz3+TeIuhGN6DAcjQX83m1t9TnJpzIuVonUNN0re5KEvKzDJk
SwxP6KapCR3eLXafhVEZ+UuB3OEP3IFy5oXM+dhVOwvWK+zF3clKVg==
=HNjM
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <0i1gc8.b94.ln@simpsons4ever>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38EB55D7.E8E3D3AB@mtgsystem.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,8126a5a350ec2e4b
X-Google-Attributes: gidf86c8,public
From: batsman@simpsons4ever. (batsman)
Subject: Re: Punteros a funciones y métodos
Date: 2000/04/05
Message-ID: <0i1gc8.b94.ln@simpsons4ever>
X-Deja-AN: 607247981
Content-Transfer-Encoding: 8bit
References: <38EB55D7.E8E3D3AB@mtgsystem.com>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 954968855 62.36.25.44 (Wed, 05 Apr 2000 23:07:35 MET DST)
Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/
Mime-Version: 1.0
Reply-To: see_signature-mira_firma
NNTP-Posting-Date: Wed, 05 Apr 2000 23:07:35 MET DST
Newsgroups: es.comp.os.linux.programacion