Hi Charles, all ...
"Almost. Avoid defining static and global variables within the code. Use parental globals instead." ...
Well, it's somewhat the same in Lisp , wrote something (picked up an idea from some time ago (tB + O2) , the same L-system but now with two parameters (called M and N ) .. with this I finally will be able to set up those L systems in 3D ) but for fun I added an optional complex mapping (see attachm. , the arrow ).
This is compiled code, but the "z-mapping" is a function (it has an operator (in fact it will accept almost every Lisp code ) - it is handled/compiled by an (eval .... ) , but also here, it only will work when Z is declared global (defvar Z ... ) , local with
(let ((.. ) (..) ... ) or let* it will not work. (and probably local defined functions as (flet ... ) and (labels .. ) wil not work either ..
best Rob
.