POV-Ray : Newsgroups : povray.beta-test : tuple in dict : Re: tuple in dict Server Time
3 Dec 2022 07:05:12 EST (-0500)
  Re: tuple in dict  
From: clipka
Date: 28 Nov 2018 08:18:40
Message: <5bfe95b0$1@news.povray.org>
Am 27.11.2018 um 23:27 schrieb ingo:
> in news:web.5bfd56506924cc99783c249c0@news.povray.org jr wrote:
>> if you write:
>> [...]
> Thanks. Thats what I started with, but read somewhere the [2] can be
> omitted for one dimensional arrays,

Note that this isn't just a matter of convenience - the resulting arrays 
will behave differently, with the "non-sized" array being able to grow 
dynamically. The downside of such dynamically-sized arrays is that they 
require more memory.

So whenever you know the size of the array in advance, omitting it is 
bad practice.

Post a reply to this message

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