POV-Ray : Newsgroups : povray.off-topic : Games programmers : Re: Games programmers Server Time
7 Sep 2024 07:24:36 EDT (-0400)
  Re: Games programmers  
From: Darren New
Date: 20 Sep 2008 11:29:09
Message: <48d516c5@news.povray.org>
Warp wrote:
>> Not compile a program that tries to read past EOF?
>   The compiler has to guess how much data there is in a possible input file?

No. The compiler does something called typestate analysis (not too 
unlike data flow analysis) to ensure that once the function returns EOF 
you don't invoke the read function any more.

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

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