POV-Ray : Newsgroups : povray.programming : Type checking : Re: Type checking Server Time
28 Jul 2024 08:34:59 EDT (-0400)
  Re: Type checking  
From:
Date: 9 Jul 2002 08:34:34
Message: <fplliu8r1n8ljmk87pqt34s549kumg2m5k@4ax.com>
On Tue, 9 Jul 2002 08:27:31 -0400, "cadman"
<REM### [at] povraycouk> wrote:
> 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?

Can't verify this currently but perhaps this is connected with type checking
when array entry is readed since you can't have different types in one array ?

ABX


Post a reply to this message

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