POV-Ray : Newsgroups : povray.off-topic : Curious C / C++ defined behavior question : Re: Curious C / C++ defined behavior question Server Time
30 Jul 2024 00:20:09 EDT (-0400)
  Re: Curious C / C++ defined behavior question  
From: Warp
Date: 29 Jun 2011 15:55:47
Message: <4e0b8343@news.povray.org>
Lars R. <rou### [at] gmxnet> wrote:
> I'd suggest something like ???A recursion depth of at least 5 must be
> supported by the platform.

  They can't do that because then all compilers would become non-standard
in this regard.

  You can't impose a minimum amount of recursions because it depend on the
size of the stack and how much stuff is allocated on it. You can allocate
such a huge array on the stack that you might not be able to recurse even
once without running out of stack space, regardless of how large the stack
is.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.