CompuServe Thread

#(AND)

6 messages in this thread
#28355From: Jeff MastersonJan 12, 1992 10:24 PM
SYSOP When I first get into the drawing editor, everything works fine, including the (and) function. After 10-15 minutes, the (and) function stops working. Initially: (and 1 1) & (or 1 1) returns T. Then (and 1 1) returns "error:null function" & (or 1 1) returns T. STATUS: virt. mem. 3924K; program size-90%; conv. mem.-508K; ext. mem.-6960K; swap-388K. Appreciatively, Jeff
#28423From: Tony Tanzillo [LISP TM]Jan 13, 1992 12:31 PM
Jeff – It appears that you're using the symbol AND as a variable, and are assigning some value (like nil) to it. You can confim this after the error occurs by entering !and at the command: prompt, and checking the value thats assigned to it. If you don't see something like <Subr #XXXX> then there is a program that is assigning a new value to the symbol, and that is what is causing the error. Search your code for "(setq and", and see if you find anything. -TonyT.
#28528From: Jeff MastersonJan 14, 1992 12:28 AM
Tony I never would have guessed that in a trillion years; that's almost a lifetime in dog years. Actually, it wasn't in the lisp itself. Using a Power Mouse, I load up a full macro of (setq ang nil ent nil…..). That allows me to check the variables after each test (global), then click the button & send all those little devils back to nil-land. It really makes repetitive testing easy. Anyway, that is where the "and" was. You're a genius, & I use that word loosely. Thanx a million (that's a fraction of a second in dog years). Appreciatively, Jeff
#28539From: Craig Sharp [Mem TM]Jan 14, 1992 6:32 AM
Jeff: Sounds to me like you are running some lisp routines that are disabling AutoLISP, or it's atomlist… type !atomlist at the command prompt and see what you get… C#
#28638From: Brian Boatright [KBJ FL]Jan 14, 1992 5:00 PM
C-man…you KNOW that no one can type !atomlist…it's just a myth perpetrated by Autodesk! <g> Brian
#28708From: Craig Sharp [Mem TM]Jan 15, 1992 8:10 AM
Brian: You may be right… I know I used to be able to read what the atomlist contained… I just don't remember how I did it… I have taken the approach 'Damn the Torpedos' and use weird function names…<G>. C#