POV-Ray : Newsgroups : povray.beta-test : [doc] Typo 6.1.8.1 ? Server Time
1 Nov 2024 17:18:57 EDT (-0400)
  [doc] Typo 6.1.8.1 ? (Message 1 to 2 of 2)  
From: Tim Nikias
Subject: [doc] Typo 6.1.8.1 ?
Date: 29 Mar 2002 11:06:15
Message: <3CA490FF.EE8866FD@gmx.de>
I'm not sure if its a Typo or not:

In 6.1.8.1 concerned with Arrays, the definition says
#declare IDENTIFIER = array[ INT ][ [ INT ] ]...[ARRAY_INITIALIZER] |
#local IDENTIFIER = array[ INT ][ [ INT ] ]...[ARRAY_INITIALIZER]

The second [ [ INT ] ] bugs me. I know that its optional,
but it looks kinda strange, as if you should do something
like
#declare Test_Array=array[4][[4]]

I know that an example later on shows the correct use, but I just
got irritated, and perhaps someone new might be too!

So, nothing important really.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html


Post a reply to this message

From: Robert Chaffe
Subject: Re: [doc] Typo 6.1.8.1 ?
Date: 29 Mar 2002 11:19:12
Message: <3ca49400@news.povray.org>
"Tim Nikias" <tim### [at] gmxde> wrote in message news:3CA490FF.EE8866FD@gmx.de...
> I'm not sure if its a Typo or not:
>
> In 6.1.8.1 concerned with Arrays, the definition says
> #declare IDENTIFIER = array[ INT ][ [ INT ] ]...[ARRAY_INITIALIZER] |
> #local IDENTIFIER = array[ INT ][ [ INT ] ]...[ARRAY_INITIALIZER]
>
> The second [ [ INT ] ] bugs me. I know that its optional,
> but it looks kinda strange, as if you should do something
> like
> #declare Test_Array=array[4][[4]]
>
> I know that an example later on shows the correct use, but I just
> got irritated, and perhaps someone new might be too!
>
> So, nothing important really.

Difficult because one set of brackets is required and the other is indicating an
optional part.  The syntax in section 10.1.3.6
is somewhat wordier but more concise, perhaps.

Robert


Post a reply to this message

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