POV-Ray : Newsgroups : povray.general : indexing array give parse error (repost because I forget to add the subject= : Re: indexing array give parse error (repost because I forget to add the sub= Server Time
29 Jul 2024 04:17:35 EDT (-0400)
  Re: indexing array give parse error (repost because I forget to add the sub=  
From: Warp
Date: 15 Jan 2013 12:49:04
Message: <50f59690@news.povray.org>
stevenvh <nomail@nomail> wrote:
> Warp <war### [at] tagpovrayorg> wrote:
> > stevenvh <nomail@nomail> wrote:
> > >    MyTable[0][i] = i + 1
> >
> > You have to #declare that.
> >
> > (Also, you are not incrementing 'i' anywhere.)

> Thanks for the reply. The increment got lost in copying the code (I removed a
> lot  of code to get to the core of the problem). I have #declared MyTable, even
> with initialization values (first line of the code), and i is declared as
> #local, which should be as good as #declare. Changing it to #declare doesn't
> solve the problem, anyway.

You don't understand. You have to #declare what I quoted.

    #declare MyTable[0][i] = i + 1;

-- 
                                                          - Warp


Post a reply to this message

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