From: Tassilo Horn <tsdh@gnu.org>
To: Leo Liu <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: behaviour change in cl-subseq
Date: Thu, 06 Aug 2015 08:11:33 +0200 [thread overview]
Message-ID: <87pp31djze.fsf@gnu.org> (raw)
In-Reply-To: <m1614tff9m.fsf@zeuss-MBP.lan> (Leo Liu's message of "Thu, 06 Aug 2015 08:10:29 +0800")
Leo Liu <sdl.web@gmail.com> writes:
>> (cl-subseq '() 10 10) ;; errors
>
> What did you get when you run it in Common Lisp?
In SBCL 1.2.12 I get an error:
* (subseq '() 10 10)
debugger invoked on a SB-KERNEL:BOUNDING-INDICES-BAD-ERROR in thread
#<THREAD "main thread" RUNNING {1002D76633}>:
The bounding indices 10 and 10 are bad for a sequence of length 0.
See also:
The ANSI Standard, Glossary entry for "bounding index designator"
The ANSI Standard, writeup for Issue SUBSEQ-OUT-OF-BOUNDS:IS-AN-ERROR
So I guess the new behavior is in compliance with Common Lisp. Or well,
not with the current ANSI standard but with a future one.
Bye,
Tassilo
next prev parent reply other threads:[~2015-08-06 6:11 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-05 12:14 behaviour change in cl-subseq Phillip Lord
2015-08-06 0:10 ` Leo Liu
2015-08-06 6:11 ` Tassilo Horn [this message]
2015-08-06 9:34 ` Phillip Lord
2015-08-06 9:48 ` Leo Liu
2015-08-07 14:00 ` Phillip Lord
2015-08-07 14:26 ` Nicolas Petton
2015-08-07 15:51 ` Phillip Lord
2015-08-07 16:08 ` Nicolas Petton
2015-08-07 21:23 ` Phillip Lord
2015-08-08 19:56 ` Nicolas Petton
2015-08-20 20:50 ` Phillip Lord
2015-08-21 0:02 ` Artur Malabarba
2015-08-06 8:08 ` Nicolas Petton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pp31djze.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.