stops compiling
Kyle Furlong
kylefurlong at gmail.com
Thu Mar 23 16:32:35 PST 2006
Brad Roberts wrote:
> On Wed, 22 Mar 2006, Walter Bright wrote:
>
>> "Kyle Furlong" <kylefurlong at gmail.com> wrote in message
>> news:dvsp6s$23r8$10 at digitaldaemon.com...
>>> To try and make a perfect compiler of course! <g> Or did you just increase
>>> the stack size? Could I still smash it with say... a million statements?
>> No, I didn't increase the stack size. I put in an exception handler for the
>> stack overflow exception. It still quits, it just gives a message first.
>
> Did you check the results on linux? That sounds like you're catching a
> structured exception under windows that doesn't have an analog under any
> unix system.
>
> Too bad it's not actually making it so it's capable of handling a
> seriously long function.. in some auto-code generation scenarios this
> isn't that odd a case. I see it come up from time to time on the gcc
> developers list. Obviously, failing gracefully is better than failing
> catastrophically, but it's still failing.
>
> - Brad
I agree, what about the future, i.e. metaprogramming? I can also think of some reasons for having such a long function. Do
templates also use such a statement stack?
More information about the Digitalmars-d-bugs
mailing list