|
|
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
|
|