From owner-freebsd-chat Mon Mar 4 00:20:52 1996 Return-Path: owner-chat Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA11440 for chat-outgoing; Mon, 4 Mar 1996 00:20:52 -0800 (PST) Received: from irz401.inf.tu-dresden.de (irz401.inf.tu-dresden.de [141.76.1.12]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA11434 for ; Mon, 4 Mar 1996 00:20:44 -0800 (PST) Received: from sax.sax.de by irz401.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id JAA06681 for ; Mon, 4 Mar 1996 09:20:36 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id JAA03917 for chat@FreeBSD.org; Mon, 4 Mar 1996 09:20:35 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id IAA09685 for chat@FreeBSD.org; Mon, 4 Mar 1996 08:53:34 +0100 (MET) From: J Wunsch Message-Id: <199603040753.IAA09685@uriah.heep.sax.de> Subject: Re: your mail To: chat@FreeBSD.org Date: Mon, 4 Mar 1996 08:53:34 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "invalid opcode" at Mar 1, 96 11:37:24 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-chat@FreeBSD.org Precedence: bulk As invalid opcode wrote: > > Can't be... main() ain't void in C++. Shall we discusss the virutues of > > "void main()"??? Anybody seen the comp.lang.c T-shirts with the slash > b: void main(), void main( void ), i use void main( void ) even in C++. void main() is nonsense, in particular in environments that use the return value from main. main() is of type `int' by definition. The behaviour of a type clash void <-> int is undefined (to the best of my knowledge). The behaviour of #pragma is undefined, too, and gcc used to launch `nethack' for some time when it saw a #pragma. This was in full accordance with the standard. :-)) Go to comp.lang.c with your void main(), and see how you'll be bombed. ;) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)