Stack overflow error
Bill Baxter
dnewsgroup at billbaxter.com
Sat Jan 20 06:26:29 PST 2007
Marcio Faustino wrote:
> The following code:
> void f() { f; }
> void main() {
> f();
> }
>
> compiled by DMD v1.0 (on Windows XP) generates an "Error: Stack Overflow" error.
Are you saying you'd like D to implement the tail recursion elimination
optimization? Because most C/C++ compilers would probably generate a
stack overflow on the equivalent of that code too.
Oh, you do realize D treats 'blah' as a synonym for 'blah()' if blah is
a function or delegate, right?
--bb
More information about the Digitalmars-d-bugs
mailing list