POV-Ray : Newsgroups : povray.bugreports : initialise array from csv file : initialise array from csv file Server Time
18 Apr 2024 17:29:19 EDT (-0400)
  initialise array from csv file  
From: jr
Date: 5 Sep 2021 07:40:00
Message: <web.6134ab6b41a27e515e0fed26cde94f1@news.povray.org>
hi,

I am trying to initialise an array via an '#include', as described in clipka's
message <http://news.povray.org/52dab911%40news.povray.org>.  but, no dice with
the three versions I tried: v3.8 alpha.9945627 and beta.2, and v3.7.0.8.

the test data:
$ cat tst.csv
1,2,3,4,
5,6,7,8,
9,10,11,12,
13,14,15,16
$

in the scene I use:

#declare arr_ = array [16] { #include "tst.csv" };

I get two different error messages, v3.7.0.8: "Parse Error: Insufficent number
of initializers".  and for the v3.8 POV-Ray's: "Parse Error: Expected 'array
initializer element', # found instead".


regards, jr.


Post a reply to this message

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