POV-Ray : Newsgroups : povray.programming : Type checking Server Time
23 Dec 2024 22:07:45 EST (-0500)
  Type checking (Message 1 to 2 of 2)  
From: cadman
Subject: Type checking
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

From:
Subject: Re: Type checking
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.