POV-Ray : Newsgroups : povray.off-topic : My first C++ program : Re: A test Server Time
30 Sep 2024 19:31:44 EDT (-0400)
  Re: A test  
From: Warp
Date: 24 Sep 2008 09:44:42
Message: <48da4449@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> I can certainly see why the standard doesn't mandate anything either 
> way. Do you happen to know the "typical" behaviour of any well-known C++ 
> compilers? (Presumably it varies depending on the optimisation level you 
> select...)

  Compilers use some kind of heuristic to determine whether it's beneficial
to inline some function or not. What those heuristics are, I don't know.

  From the programmer's point of view, it doesn't really matter. The program
will behave identically in either case (except maybe a small difference in
execution speed).

-- 
                                                          - Warp


Post a reply to this message

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