🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15013

Re: Insérer une fonctions dans une structure?

#15013
From: Antoine Leca
Date: Wed, 19 Oct 2005 13:37
18 lines
1918 bytes
Nicolas Cherel wrote:

> En passant, pour les pointeurs de fonction : quelle est la diff�rence
> entre "&fonction" et "fonction" ?

� l'utilisation, je crois qu'il n'y en a pas tant qu'il n'y a pas de macros
"fonction".

Techniquement (et toujours sans macros en vue), le premier est un pointeur
vers une fonction et le second est un d�signateur de fonction : ce sont donc
deux entit�s diff�rentes du point de vue de la grammaire. Mais l'on peut
utiliser l'un � la place de l'autre (et ce m�me sur les tr�s vieux
compilateurs, pour autant que je me souvienne), sauf dans des constructions
tordues (par exemple comme arguments de & ou de sizeof, o� seule la seconde
forme sera autoris�e).


Antoine
Technical Details
Message-ID: <dj5i7b$ofj$1@shakotay.alphanet.ch>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gandi!gandi.net!freenix!news.alphanet.ch!alphanet.ch!not-for-mail
References: <87r7amd6qx.fsf@venus.net> <mn.7ccf7d5a1b906ca4.31483@laposte.net> <43556096$0$7337$636a55ce@news.free.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,d00d98e8032f6fc
X-Google-Attributes: gidf9822,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gandi!gandi.net!freenix!news.alphanet.ch!alphanet.ch!not-for-mail
From: "Antoine Leca" <root@localhost.invalid>
Newsgroups: fr.comp.lang.c
Subject: Re: Insérer une fonctions dans une structure?
Date: Wed, 19 Oct 2005 15:37:44 +0200
Organization: Posted through ALPHANET (http://www.alphanet.ch/)
Lines: 19
Sender: antoinel@212.111.102.30
Message-ID: <dj5i7b$ofj$1@shakotay.alphanet.ch>
References: <87r7amd6qx.fsf@venus.net> <mn.7ccf7d5a1b906ca4.31483@laposte.net> <43556096$0$7337$636a55ce@news.free.fr>
NNTP-Posting-Host: 212.111.102.30
Mime-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-15"
Content-Transfer-Encoding: 8bit
X-Trace: shakotay.alphanet.ch 1129729068 25075 212.111.102.30 (19 Oct 2005 13:37:48 GMT)
X-Complaints-To: usenet@alphanet.ch
NNTP-Posting-Date: Wed, 19 Oct 2005 13:37:48 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506