emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trunk r117396: Do not allow out-of-range character position in Fcomp


From: Dmitry Antipov
Subject: Re: trunk r117396: Do not allow out-of-range character position in Fcompare_strings.
Date: Wed, 25 Jun 2014 17:46:14 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 06/25/2014 05:22 PM, Dmitry wrote:
IIUC, this small discussion ended with "it's too late to fix".  Why did
you make the change, then?

"Too late" for emacs-24, which is in pretest stage.

And if it's okay to change the semantics, why not change it the other
way, relaxing `substring' requirements?

Why relaxing? IMO relaxing just means more error-prone code (imagine
an `aset' which silently ignores writing an element beyond array end,
or `aref' which always returns nil in that case).

Anyway, you can defsubst a tiny wrapper to relax if you need.

Dmitry




reply via email to

[Prev in Thread] Current Thread [Next in Thread]