How to make destructive function

Started by ssqq, July 15, 2016, 02:09:09 AM

Previous topic - Next topic

ssqq

some newLISP builtin function is destructive, If user want design destructive function, how to make it?



for every argument passed into user function is value, not reference only if value is stored in a functor.

TedWalther

#1
I suggest, use a macro, or else pass in a symbol, you can alter the value that a symbol points to.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

ssqq

#2
thanks, I think macro may be ok!