Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: java question
- To: tlug@example.com
- Subject: Re: java question
- From: vp@example.com (Viktor Pavlenko)
- Date: 14 Jun 2001 14:23:42 +0900
- Content-Type: text/plain; charset="ISO-2022-JP"
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <UbO9GC.A.xlH.gpEK7@example.com>
- Resent-Sender: tlug-request@example.com
"Stephen J. Turnbull" <turnbull@example.com> writes: >(defun integer-mung () > (let ((i (read))) > (if (and (> i 10) (< i 0)) ; check range > (integer-mung) > (throw 'value i)))) > >(catch 'value (integer-mung)) > Invalid input is not handled here, in java NumberFormatException is defined so that you can and must handle it (a good thing after all) Just tried this in emacs (having replaced and with or). Is this a common way of doing things in lisp? I mean throwing exceptions just to jump somewhere? (just curious)Viktor
- Follow-Ups:
- Re: java question
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: selecting DB on linux
- Next by Date: Re: selecting DB on linux
- Prev by thread: java question
- Next by thread: Re: java question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links