POV-Ray : Newsgroups : povray.off-topic : A silly little toy (~200 kb) : Re: Build #86 (user-defined functions) Server Time
10 Oct 2024 03:15:56 EDT (-0400)
  Re: Build #86 (user-defined functions)  
From: Darren New
Date: 17 Oct 2008 12:09:40
Message: <48f8b8c4@news.povray.org>
Invisible wrote:
>>> - Fixed a very evil bug where calling functions with certain variable 
>>> names as arguments would cause bizare malfunctions. (Basically the 
>>> variable names used inside the function clashing with the arguments 
>>> passed in. This *should* be fixed now...)
>>
>> And you wondered why Lisp has that funky "gensym" function.
> 
> What is "gensym", and why does Lisp have it?

It creates a guaranteed-unique variable name that you can use as a local 
in a macro or a dynamically-scoped function.   What did you *think* it 
might be for, given the bit I quoted and the name of the LISP function?

-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

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