Bug? 'delete' doesn't work on constants
Posted: Mon Oct 26, 2009 11:59 pm
Code: Select all
> (constant 'foo 3)
3
> (delete 'foo)
nil
> (set 'foo 3)
ERR: symbol is protected in function set : foo
Friends and Fans of newLISP
http://www.newlispfanclub.alh.net/forum/
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=2969
Code: Select all
> (constant 'foo 3)
3
> (delete 'foo)
nil
> (set 'foo 3)
ERR: symbol is protected in function set : foo
Code: Select all
> (constant 'foo 3)
3
> (delete 'foo)
nil
> foo
3
> (set 'bar '123)
123
> (delete 'bar)
true
> (sym "bar" MAIN nil)
nil
>