From -6817795385076513773
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,48dfb24b32c49e6f,start
X-Google-Attributes: gidf78e5,public
From: assert@my-deja.com
Subject: friendly main
Date: 2000/07/27
Message-ID: <8ln9tu$uv2$1@nnrp1.deja.com>#1/1
X-Deja-AN: 651077664
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Authentication-Warning: backdraft.briar.org: smap set sender to <news@dejanews.com> using -f
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; MSN 2.5; Windows 98)
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Trace: mail2news.demon.co.uk 964635829 mail2news:762 mail2news mail2news.demon.co.uk
X-Http-Proxy: HTTP/1.1 fcs01gsp-a[D1D6254B] (Traffic-Server/3.0.6 [uScMs f p eN:t cCMi p s ]), 1.1 x52.deja.com:80 (Squid/1.1.22) for client 209.214.37.75
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Wed Jul 26 18:16:33 2000 GMT
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MyDeja-Info: XMYDJUIDassert
Newsgroups: comp.std.c++

#include <iostream>

using namespace std;

struct S
{
  friend int main () { cout  << "boo" << endl; }
};

// well formed ?




additionally, if

int main (int argc, char *argv[]) is legal

then is

int main (int argc, char **argv) legal too ?

(same with int main () and int main (void))

it isnt clear to me if 3.6.1
is talking about the signature of
the function in general or the
functions exact form ?

Thanks.


Sent via Deja.com http://www.deja.com/
Before you buy.

---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]




