POV-Ray : Newsgroups : povray.programming : Parsing optional float parameter? : Re: Parsing optional float parameter? Server Time
28 Jul 2024 14:34:20 EDT (-0400)
  Re: Parsing optional float parameter?  
From: Chris Huff
Date: 8 Dec 2000 11:03:50
Message: <chrishuff-8B3694.11043908122000@news.povray.org>
In article <slr### [at] fwicom>, ron### [at] povrayorg 
wrote:

> But that would violate the principle that most commas are optional.

I've never seen anyone write multiple-parameter functions without 
commas...and if I did, I would tell them they forgot a comma. I don't 
think that is a serious problem...but if you really want to do that, you 
can just allow a comma and use the same technique to check the Token_Id 
of the next token to see if it was a float, unget it, and use 
Parse_Float() if it was a float token.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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