bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th e


From: Andreas Schwab
Subject: bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element
Date: Wed, 18 Aug 2010 10:36:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

MON KEY <monkey@sandpframing.com> writes:

> As with the the first bool-vector of length 29 the second bool-vector
> of length 0 should also have a value at element 0 that evaluates to
> `t'.  (Or, it should according to the manual):

There is no element 0 in a 0-length bool vector, just like there is no
element 29 in a 29-length bool vector.

> Obv. taking the 0th index of a vector or char-table also signals an
> args-out-of-range error however I belive this for slightly different
> reasons.

In which way are bool vectors different from other vectors?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

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