Jump to content

Recommended Posts

Posted
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 :)

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    12

  • AQucsaiJr

    9

  • alanjt

    3

  • ReMark

    2

Top Posters In This Topic

Posted

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!

Posted
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 o:)

 

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.

Posted
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: :P

Posted
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 :P

Posted
They aren't noticeable so much when you are just fiddling with CMDECHO or CLAYER... but OSMODE will tick you off :P

 

 

I will have to keep that in mind when I get that far... Thanks

Posted
Point taken, but still - I just don't like to see (*error* nil) :wink: :P

 

LoL

To each his own.:wink:

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...