From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: ctor ? Date: Tue, 22 Jul 1997 21:55:57 -0700 Organization: Alcyone Systems Lines: 26 Message-ID: <33D58EDD.3CBEF5A7@alcyone.com> References: <199707100209 DOT AA214490589 AT typhoon DOT rose DOT hp DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Andrew Crabtree wrote: > If I compile the following code > > #include > int f() > { > return 5; > } > > int x = f(); ... > As C the compiler complains that it is using a non-constant > initializer. This is a valid complaint -- you are not writing good ANSI C. In C, an initializer (what's on the right side of the = sign when you are defining a variable) must be a compile-time constant. -- Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "Love is not love which alters / when it alternation finds." / William Shakespeare, _Sonnets_, 116