From 6038006723702143520
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ea96cc047f6a22cc
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-08-15 19:45:08 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)
From: comeau@panix.com (Greg Comeau)
Newsgroups: comp.std.c++
Subject: Re: extern "C" -- what is the intent?
Organization: Comeau Computing; http://www.comeaucomputing.com
Message-ID: <9lfb5f$7so$1@panix3.panix.com>
References: <090820010209154805%BobbySchmidt@mac.com> <AFhFdLA6bWe7EwlG@ntlworld.com> <9lclar$cs6$1@panix3.panix.com> <F46UitAWXre7Ew2z@ntlworld.com>
Reply-To: comeau@comeaucomputing.com
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Date: Wed, 15 Aug 2001 21:44:48 CST
Lines: 36
Xref: archiver1.google.com comp.std.c++:7009

In article <F46UitAWXre7Ew2z@ntlworld.com>,
Francis Glassborow  <francisG@robinton.demon.co.uk> wrote:
>In article <9lclar$cs6$1@panix3.panix.com>, Greg Comeau
><comeau@panix.com> writes
>>I agree with issues of say exception handling, but still
>>feel C++ allows linkage specifications to be bi-directional.
>
>Of course it allows it, but it is up to the language in which the call
>is made to decide what is allowed.

Agreed.

>C++ cannot force a C compiler to
>allow linkage to a C++ implemented function.

Agreed.

>However, as long as such
>things as size and alignment are compatible, C++ can require that a C++
>compiler supports calling a function written in C.

I think I disagree.  I mean, I think it can try hard for it,
but don't think it does go that full mile in the current C++ language
specification.  Maybe I'm misunderstanding you though.
-- 
Greg Comeau                 Countdown to "export": December 1, 2001
Comeau C/C++ ONLINE ==>     http://www.comeaucomputing.com/tryitout
World Class Compilers:  Breathtaking C++, Amazing C99, Fabulous C90.
Comeau C/C++ with Dinkumware's Libraries.  Have you tried it?

---
[ 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                ]



