POV-Ray : Newsgroups : povray.off-topic : A silly little toy (~200 kb) : Re: Build #86 (user-defined functions) Server Time
10 Oct 2024 03:17:47 EDT (-0400)
  Re: Build #86 (user-defined functions)  
From: Invisible
Date: 20 Oct 2008 04:06:22
Message: <48fc3bfe@news.povray.org>
> It's only "self-modifying code" if you modify it after it has already 
> been run.

Well, technically that's true. But Lisp macros run at runtime, not 
compile time, so technically you could run the same macro twice and have 
it generate different code each time...

> Computer scientists quite like code-generating macros. They have some 
> pretty sophisticated ones, called "compilers".

Yeah. And as I understand it, writing one is supposedly the hardest task 
in all of Computer Science. :-P

Sounds like writing one as part of your application is an excellent idea...


Post a reply to this message

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