POV-Ray : Newsgroups : povray.beta-test : #include issue Server Time
1 Nov 2024 09:23:11 EDT (-0400)
  #include issue (Message 1 to 4 of 4)  
From:
Subject: #include issue
Date: 14 Jun 2002 09:46:07
Message: <rcsjguc120v6s6a5kpnbk5vbn1pmio2ndb@4ax.com>
POV 3.5 RC6 icl on WinNT Sp 6 PII 233 with 128 MB

following file with following content is parsed fine:

  TEST1.POV:
    #declare A=array[2][2]{ {1,1} {2,2} };

but following files with splitted content returns parse error:

  TEST1.POV:
    #declare A=array[2][2]{ #include "TEST2.INC" };
  TEST2.INC:
    {1,1} {2,2}

Returned from renderer with error status
#declare A=array[2][2]{ # <----ERROR
Parse Error: Missing { after '{', # found instead

When I move '{' and '}' to include file then it not works too.
When I move 'array[2][2]' it works fine.

Documentation states clearly : "The language allows include files to be
specified (...) at any point in the input file."

ABX


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: #include issue
Date: 14 Jun 2002 10:02:02
Message: <3d09f75a$1@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> Documentation states clearly : "The language allows include files to be
> specified (...) at any point in the input file."

This would also allow:

/*
#include "foo.inc"
*/

You should really not read the documentation as a specification because it
is not and never was meant to be a specification.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: #include issue
Date: 14 Jun 2002 10:04:14
Message: <3d09f7de$1@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

> Documentation states clearly : "The language allows include files to be
> specified (...) at any point in the input file."

This would also allow:

/*
#include "foo.inc"
*/

You should really not read the documentation as a specification because it
is not and never was meant to be a specification.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From:
Subject: Re: #include issue
Date: 14 Jun 2002 10:23:23
Message: <i6ujgug2j52vt83d8mp64llp3joh736vvd@4ax.com>
On Fri, 14 Jun 2002 16:02:00 +0200, "Thorsten Froehlich" <tho### [at] trfde>
wrote:
> You should really not read the documentation as a specification because it
> is not and never was meant to be a specification.

I don't. But I want to show points where documentation could be more precise.
Such exception seems strange IMO but if it is intentional design then it is
very easy to find workaround.

ABX


Post a reply to this message

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