POV-Ray : Newsgroups : povray.programming : Type checking : Type checking Server Time
28 Jul 2024 08:21:31 EDT (-0400)
  Type checking  
From: cadman
Date: 9 Jul 2002 08:27:40
Message: <3d2ad6bc@news.povray.org>
The docs state that when using a #read directive into an already #declare'd
variable, POV will perform type checking.  I.e. I read that to mean that the
following shouldn't work:

-----------------------------------------------
#declare MyString="Hi mom!"
#fopen f "MyFile.txt" read
#read (f,MyString)
-----------------------------------------------
if Myfile.txt contains the text "<1,1,1>" (with no quotes)

But it does.  Is this a bug, or something I'm doing wrong?


Post a reply to this message

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