[Top][All Lists]

[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**: |
Stefan Monnier |

**Subject**: |
bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element |

**Date**: |
Wed, 18 Aug 2010 09:36:55 +0200 |

**User-agent**: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |

>* When aref/aset'ing the 0th element of a bool-vectors of length 0 i get*
>* an args-out-of-range error:*
To have a 0th element, an array needs to be of length >= 1.
So this behavior seems perfectly correct to me.
An array of length N has elements 0..N-1, so an array of length
0 doesn't have any elements at all. This should be true of strings,
vectors, and bool-vectors.
Stefan

**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *MON KEY*, `2010/08/18`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**,
*Stefan Monnier* **<=**
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *MON KEY*, `2010/08/18`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *Andreas Schwab*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *MON KEY*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *Stefan Monnier*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *MON KEY*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *Stefan Monnier*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *Andreas Schwab*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *Chong Yidong*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *MON KEY*, `2010/08/19`
**bug#6878: bool-vectors of length 0 signal error when aref/aset the 0th element**, *Juanma Barranquero*, `2010/08/19`