Lee Mac Posted September 22, 2009 Posted September 22, 2009 I have been reading a learning a little more each week on building LISP, but I can't figure this out, why should you have the error function in there? In reference to this cloud LISP, what would cause an error? The user hitting Esc or Ctrl+C would cause an Error, and, as I am messing with Sys Vars (CLAYER), the Error Handler is required to reset them, and to suppress the error message Quote
AQucsaiJr Posted September 22, 2009 Author Posted September 22, 2009 I see. I don't ever put any error handlers in my LISP because I didn't think they were really needed, although all the LISPs I write are very basic and don't use any system variables... Yet! Quote
alanjt Posted September 22, 2009 Posted September 22, 2009 Yeah, I've seen that before, CAB used to use it a lot: (*error* nil) But imo, I don't like calling an error function unless there's an error.. maybe its just me PS> wcmatch accredited to Joe Burke True, but it's really no different that calling any other sub. I just wanted to offer that tid-bit, just in case. I was thinking it was Joe, but I couldn't really remember. Quote
Lee Mac Posted September 22, 2009 Posted September 22, 2009 True, but it's really no different that calling any other sub. I just wanted to offer that tid-bit, just in case. Point taken, but still - I just don't like to see (*error* nil) :wink: Quote
Lee Mac Posted September 22, 2009 Posted September 22, 2009 I see. I don't ever put any error handlers in my LISP because I didn't think they were really needed, although all the LISPs I write are very basic and don't use any system variables... Yet! They aren't noticeable so much when you are just fiddling with CMDECHO or CLAYER... but OSMODE will tick you off Quote
AQucsaiJr Posted September 22, 2009 Author Posted September 22, 2009 They aren't noticeable so much when you are just fiddling with CMDECHO or CLAYER... but OSMODE will tick you off I will have to keep that in mind when I get that far... Thanks Quote
alanjt Posted September 22, 2009 Posted September 22, 2009 Point taken, but still - I just don't like to see (*error* nil) :wink: LoL To each his own.:wink: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.