From 7368897309075882156
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ea96cc047f6a22cc
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-08-24 13:00:02 PST
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Message-ID: <I3jnxvAOakh7Ewfp@ntlworld.com>
From: Francis Glassborow <francis.glassborow@ntlworld.com>
Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
Newsgroups: comp.std.c++
Subject: Re: extern "C" -- what is the intent?
References: <090820010209154805%BobbySchmidt@mac.com>
 <remove.haberg-1008011309410001@du132-226.ppp.su-anst.tninet.se>
 <rjRvUrB1oAd7Ew7$@ntlworld.com>
 <remove.haberg-1008012124210001@du136-226.ppp.su-anst.tninet.se>
 <v0ceBIAA0Hd7EwKT@ntlworld.com> <t3ofp6ft60.fsf@watts.itp.tuwien.ac.at>
Organization: Southfield Microcomputer SS
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 5.00 U <TilyaeicE$WmMOP9F8P4$y3lmP>
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Date: Fri, 24 Aug 2001 14:59:30 CST
Lines: 38
Xref: archiver1.google.com comp.std.c++:7138

In article <t3ofp6ft60.fsf@watts.itp.tuwien.ac.at>, Christopher Eltschka
<celtschk@web.de> writes
>class X
>{
>  // ...
>private:
>  extern "C" static void baz(void*);
>    // to be passed to C functions per pointer
>};

I am away from home and my well thumbed copy of the standard but I think
that:

extern "C" {
typedef void (cfntype)(void *);
}

class X
{
  static cfntype baz;
...
};

deals with that case.



Francis Glassborow      ACCU
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



