From 534933290738056065
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,bb04047befc790b4,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-02-21 11:54:00 PST
Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: MikeAlpha@NoSpam_csi.com (Martin Aupperle)
Newsgroups: comp.std.c++
Subject: empty parameter list and extern "C"
Date: Wed, 21 Feb 2001 19:51:25 GMT
Organization: Nikoma Mediaworks GmbH
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <3a91a017.213629713@news.nikoma.de>
X-Trace: mail2news.demon.co.uk 982785099 mail2news:9061 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Authentication-Warning: backdraft.briar.org: smap set sender to <news@news.nikoma.de> using -f
NNTP-Posting-Date: Tue, 20 Feb 2001 21:35:58 +0000 (UTC)
X-Newsreader: Forte Free Agent 1.21/32.243
Lines: 38
Xref: supernews.google.com comp.std.c++:3728

Hello,

I hope that I remember right that a function with the signature

	void f();

and compiled under a C-compiler can be called with arbitrary
arguments. 
But when I declare 

	extern "C" void f();

and compile under a C++ compiler, I cannot call f with arguments. 

Is it correct that an empty argument list means "no arguments" even if
we compile against an implementation that allows it ( here, the
implementation of f is likely to be in a C-Module that must make no
assumptions about the arguments and therefore can be called with
arbitrary ones) ?

Thanks - Martin




------------------------------------------------
Martin Aupperle 
MikeAlpha@NoSpam_csi.com
(remove NoSpam_)
------------------------------------------------

---
[ 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                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]



