Why would "prompt" be better than "princ"?

James Maeding

Usenet Archive
Joined
Jul 7, 2003
Messages
331
Reaction score
0
One of my users is getting errors on lisp routines that use the prompt statement. I always use princ not prompt. I am assuming the protected symbol prompt got defined to something else. Is there a way to set protected symbols back to the default values?

Also, is there some setting that affects the prompt statement action, I thought it was a pretty vanilla function. thanks James Maeding Civil Engineer/Programmer
 
What is the error?

James Maeding said:
One of my users is getting errors on lisp routines that use the prompt statement. I always use princ not prompt. I am assuming the protected symbol prompt got defined to something else. Is there a way to set protected symbols back to the default values?

Also, is there some setting that affects the prompt statement action, I
thought it was a pretty vanilla function.
 
James:
The main (hmm... think it's "only") difference between (princ) and (prompt) is that (prompt) always returns nil. I use it a lot in Kosterized progressions... (and (or (= something 'T) (prompt "\nSomething is nil") ) ;...
)

Now if your (someone's) program has used prompt as a global symbol, then that's an obvious no-no. Setting it back to its original value would require either reopening or starting a new drawing if LISPINIT is 1. If LISPINIT is 0, then you'll have to turn it back on and reopen, start new, or shut down AutoCAD and start it up again, hopefully correcting the errant code in between.

James Maeding said:
One of my users is getting errors on lisp routines that use the prompt statement. I always use princ not prompt. I am assuming the protected symbol prompt got defined to something else. Is there a way to set protected symbols back to the default values?

Also, is there some setting that affects the prompt statement action, I
thought it was a pretty vanilla function.
 
thanks John

"John Uhden"
|>James:
|>The main (hmm... think it's "only") difference between (princ) and (prompt) is |>that (prompt) always returns nil. |>I use it a lot in Kosterized progressions... |>(and |> (or |> (= something 'T) |> (prompt "\nSomething is nil") |> ) |> ;... |>) |> |>Now if your (someone's) program has used prompt as a global symbol, then that's |>an obvious no-no. Setting it back to its original value would require either |>reopening or starting a new drawing if LISPINIT is 1. If LISPINIT is 0, then |>you'll have to turn it back on and reopen, start new, or shut down AutoCAD and |>start it up again, hopefully correcting the errant code in between.

James Maeding
Civil Engineer/Programmer
 

Latest threads

Back
Top