POV-Ray : Newsgroups : povray.beta-test : none keyword : Re: none keyword Server Time
16 Apr 2024 05:56:31 EDT (-0400)
  Re: none keyword  
From: clipka
Date: 5 Jan 2019 06:47:41
Message: <5c30995d$1@news.povray.org>
Am 05.01.2019 um 10:53 schrieb ingo:

> Could a 'none' keyword be introduced as a general placeholder for
> emptyness?
> object{none}
> #declare Arr = array[10]{none,none,none,5,...}
> #if(... none)
> #while(... none)
> #ifndef(Arr[I])#write(File,none)#end
> #macro DoThing(A, optional B, optional C)
> DoThing("Great thing", none, true)

Should be possible, though I'd probably favour `undef` for that purpose: 
It avoids introducing another keyword, and also makes it perfectly clear 
what happens to that array entry.


Post a reply to this message

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