From 7925599994482281303
X-Google-Thread: f78e5,abdc40c5066b5383,start
X-Google-Thread: 109fba,abdc40c5066b5383,start
X-Google-Attributes: gidf78e5,gid109fba,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 27 Apr 2005 01:10:08 -0500
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ucar.edu
From: peter_ammon@rocketmail.com
Newsgroups: comp.std.c++,comp.lang.c++
Subject: Variadic functions with no parameters
Followup-To: comp.lang.c++
Organization: http://groups.google.com
Message-ID: <1114551200.309625.229930@z14g2000cwz.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Complaints-To: groups-abuse@google.com
User-Agent: G2/0.2
Complaints-To: groups-abuse@google.com
Injection-Info: z14g2000cwz.googlegroups.com; posting-host=17.202.13.101;
   posting-account=v--vfQ0AAADFFVh3n7vT2VRz2tI0Fumm
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
Date: Wed, 27 Apr 2005 01:07:10 CST
Lines: 26
NNTP-Posting-Host: 65.182.171.162
X-Trace: sv3-BA63rlkkS32UblpDLi3owJuoOLqKvKTkglAdVLCIjSqHQfG9CAFm/hpve7ZuEmMoBb5coU5obedXFJA!hAj+AW+IMNOlrlY3BvU38acp680ByPH8bhnN70FK/U1TT78fKhwXuIUoqdW7OA4eheA7dylpRaTn!e+0McMTPEj5985JTQ8vBKViM1YecJXlitUT75YWv2dQ=
X-Complaints-To: abuse@speakeasy.net
X-DMCA-Complaints-To: abuse@speakeasy.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
Xref: g2news1.google.com comp.std.c++:4624 comp.lang.c++:51603

The C++ grammar appears to admit (and g++ accepts)

void function(...);

In such a function, how do you access any of the parameters?  And what
was the motivation for allowing functions of this type where C forbids
them?

I also notice that C++ makes the comma optional, whereas it's mandatory
in C.  That is, this is a legal prototype:

void function2(int ...);

What is the motivation for this change?

Followups set to comp.lang.c++

Thanks,
-Peter

---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]



