POV-Ray : Newsgroups : povray.advanced-users : No semicolon allowed in Tuple-style assignments? : Re: No semicolon allowed in Tuple-style assignments? Server Time
23 Feb 2024 14:10:39 EST (-0500)
  Re: No semicolon allowed in Tuple-style assignments?  
From: jr
Date: 11 Apr 2023 12:35:00
Message: <web.64358aa817acbde34301edef6cde94f1@news.povray.org>
hi,

"Kenneth" <kdw### [at] gmailcom> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> >
> > (I also run into the same kind of thing when I'm putting commas into a cylinder
> > {} and use an extra comma in between the second endpoint and the cylinder
> > radious - POV-Ray no likey.)
>
> In v3.8xx in Windows, the extra comma works OK for me. I had always assumed it
> was necessary anyway, as per docs (using the cylinder syntax there):
>
> cylinder{-.5*x,.5*x,.1 texture{...}}
>
> Leaving out the 2nd comma works as well, but that seems to be undocumented
> 'shorthand' behavior, IMHO.

agree.  fwiw, here both self-compiled beta.2 and (WFP's) povr, on Linux, are
perfectly ok with all three forms:
  #declare a_ = cylinder {0 1 .1 open};
  #declare b_ = cylinder {0,1 .1 open};
  #declare c_ = cylinder {0,1,.1 open};


regards, jr.


Post a reply to this message

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