POV-Ray : Newsgroups : povray.general : indexing array give parse error (repost because I forget to add the subject= : indexing array give parse error (repost because I forget to add the subject= Server Time
29 Jul 2024 04:32:46 EDT (-0400)
  indexing array give parse error (repost because I forget to add the subject=  
From: stevenvh
Date: 15 Jan 2013 12:00:00
Message: <web.50f589f38eb9cf29209de68b0@news.povray.org>
In the code below I get an error "Parse error: Expected 'object or directive',
float function 'float identifier' found instead." The error points to the index
[i] in the assignment. Any ideas?


*** Code ****************************************************************

#declare MyTable = array[3][6] {{0,0,0,0,0,0},{0,0,0,0,0,0},{0,0,0,0,0,0}}

#macro Init_Table()
  #local i = 0;
  #while (i < 6)
   MyTable[0][i] = i + 1
  #end
#end

Init_Table()


Post a reply to this message

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