POV-Ray : Newsgroups : povray.general : Array and Macro problem (again) : Array and Macro problem (again) Server Time
2 Aug 2024 22:12:03 EDT (-0400)
  Array and Macro problem (again)  
From: Tor Olav Kristensen
Date: 18 Aug 2004 21:38:16
Message: <41240488$1@news.povray.org>
Can you people try this code and see if you get the same
error message as me ?


#version 3.6;

// Does not work
#macro Test()
   #local AA = array[1] { 1 }
   AA
#end // macro Test

// Works
#macro Tust()
   #local AA = array[1]
   #local AA[0] = 1;
   AA
#end // macro Tust

// Works
#macro Tist()
   array[1] { 1 }
#end // macro Test

#declare BB = Test()


I get this error message:

File: E:\Raytracinger\Untitled.pov  Line: 6
File Context (5 lines):
   #local AA = array[1] { 1 }
   AA
Parse Error: Cannot assign uninitialized identifier.


POV-Ray for Windows Version 3.6.1.icl8.win32
Athlon XP2400 PC with 512MB RAM
Windows 2000 Professional v5.0.2195 Service Pack 2 Build 2195

-- 
Tor Olav
http://subcube.net
http://subcube.com


Post a reply to this message

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