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.
How to make destructive function
-
- Posts: 608
- Joined: Mon Feb 05, 2007 1:04 am
- Location: Abbotsford, BC
- Contact:
Re: How to make destructive function
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.
Re: How to make destructive function
thanks, I think macro may be ok!