Message-ID: <33BCF734.7491@cs.com> Date: Fri, 04 Jul 1997 13:14:28 +0000 From: "John M. Aldrich" Reply-To: fighteer AT cs DOT com Organization: Two pounds of chaos and a pinch of salt MIME-Version: 1.0 To: Andrew Crabtree CC: djgpp AT delorie DOT com Subject: Re: void main ? References: <199707041624 DOT AA073873448 AT typhoon DOT rose DOT hp DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Andrew Crabtree wrote: > > Sure, for the i386 class machines I would agree that void main > is never going to cause any problem other than a garbage return > value. The point I think was that on other architectures (I can't think > of any modern ones, maybe the 6502), return values may go on a stack, in > which case you could have problems. You are certainly correct. Since DJGPP is a DOS-specific compiler, I usually only worry about PCs when framing my replies. On other hardware, void main() may be substantially more dangerous. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------