POV-Ray : Newsgroups : povray.general : <no subject> : <no subject> Server Time
29 Jul 2024 04:33:01 EDT (-0400)
  <no subject>  
From: stevenvh
Date: 15 Jan 2013 11:50:00
Message: <web.50f58790c23a6d9209de68b0@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.