POV-Ray : Newsgroups : povray.advanced-users : problem using ORs and strcmp() in #switch/#case : Re: problem using ORs and strcmp() in #switch/#case Server Time
1 May 2024 21:13:37 EDT (-0400)
  Re: problem using ORs and strcmp() in #switch/#case  
From: jr
Date: 11 Nov 2017 07:43:17
Message: <5a06f065$1@news.povray.org>
hi,

On 11/11/2017 01:23, Bald Eagle wrote:
> "Kenneth" <kdw### [at] gmailcom> wrote:
>> (B)
>> This ALSO works... two 'numerical values' that match
>> #switch(27)
>> #case(C)
> Similar to the above, although an interesting reversal.
> I've never thought to do it that way, but it may open up interesting
> possibilities...  :)

thanks for pointing this out, I'd never have occurred to me.

fwiw, I can't think of another language that allows variables as case
"constants".  v cool.


Post a reply to this message

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