[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should undefined behavior be encouraged in Emacs?
From: |
Andreas Schwab |
Subject: |
Re: Should undefined behavior be encouraged in Emacs? |
Date: |
Mon, 03 Oct 2011 18:27:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) |
Eli Zaretskii <address@hidden> writes:
> I consider referencing buffer position of zero similar to indexing an
> array out of its bounds.
Unlike C, Emacs Lisp is supposed to check each and every lisp data. The
interpreter may reject an out-of-bounds or wrong-type value by raising
an error, or silently accept it by coercing it into bounds, but it
should never crash because of it.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Re: Should undefined behavior be encouraged in Emacs?, Dave Abrahams, 2011/10/03