inc non-destruktive

Q&A's, tips, howto's

inc non-destruktive

Postby HPW » Thu Apr 21, 2016 8:06 am

Hello,

I noticed that quoting the symbol makes inc non-destruktive

> (setq Test 1)
1
> (inc 'Test)
2
> Test
1
> (inc Test)
2
> Test
2


Not documented.

Regards
Hans-Peter
HPW
 
Posts: 1352
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany

Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests

cron