diff options
| author | Luc Teirlinck | 2003-10-22 02:46:08 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2003-10-22 02:46:08 +0000 |
| commit | d5e7aa502ba8a7b9b47c21e73c5ef23f9de0e0ab (patch) | |
| tree | 5d75ae1cdc66a17e5b68cf196d4bed614c7be179 | |
| parent | 6cfb0777b0b3eb2f0607823d2728053387450e26 (diff) | |
| download | emacs-d5e7aa502ba8a7b9b47c21e73c5ef23f9de0e0ab.tar.gz emacs-d5e7aa502ba8a7b9b47c21e73c5ef23f9de0e0ab.zip | |
(Integer Type): Update for extra bit of integer range.
(Character Type): Ditto.
| -rw-r--r-- | lispref/objects.texi | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lispref/objects.texi b/lispref/objects.texi index c343bac4829..58c4bd97b9d 100644 --- a/lispref/objects.texi +++ b/lispref/objects.texi | |||
| @@ -161,24 +161,24 @@ latter are unique to Emacs Lisp. | |||
| 161 | @node Integer Type | 161 | @node Integer Type |
| 162 | @subsection Integer Type | 162 | @subsection Integer Type |
| 163 | 163 | ||
| 164 | The range of values for integers in Emacs Lisp is @minus{}134217728 to | 164 | The range of values for integers in Emacs Lisp is @minus{}268435456 to |
| 165 | 134217727 (28 bits; i.e., | 165 | 268435455 (29 bits; i.e., |
| 166 | @ifnottex | 166 | @ifnottex |
| 167 | -2**27 | 167 | -2**28 |
| 168 | @end ifnottex | 168 | @end ifnottex |
| 169 | @tex | 169 | @tex |
| 170 | @math{-2^{27}} | 170 | @math{-2^{28}} |
| 171 | @end tex | 171 | @end tex |
| 172 | to | 172 | to |
| 173 | @ifnottex | 173 | @ifnottex |
| 174 | 2**27 - 1) | 174 | 2**28 - 1) |
| 175 | @end ifnottex | 175 | @end ifnottex |
| 176 | @tex | 176 | @tex |
| 177 | @math{2^{28}-1}) | 177 | @math{2^{28}-1}) |
| 178 | @end tex | 178 | @end tex |
| 179 | on most machines. (Some machines may provide a wider range.) It is | 179 | on most machines. (Some machines may provide a wider range.) It is |
| 180 | important to note that the Emacs Lisp arithmetic functions do not check | 180 | important to note that the Emacs Lisp arithmetic functions do not check |
| 181 | for overflow. Thus @code{(1+ 134217727)} is @minus{}134217728 on most | 181 | for overflow. Thus @code{(1+ 268435455)} is @minus{}268435456 on most |
| 182 | machines. | 182 | machines. |
| 183 | 183 | ||
| 184 | The read syntax for integers is a sequence of (base ten) digits with an | 184 | The read syntax for integers is a sequence of (base ten) digits with an |
| @@ -192,7 +192,7 @@ leading @samp{+} or a final @samp{.}. | |||
| 192 | 1 ; @r{The integer 1.} | 192 | 1 ; @r{The integer 1.} |
| 193 | 1. ; @r{Also the integer 1.} | 193 | 1. ; @r{Also the integer 1.} |
| 194 | +1 ; @r{Also the integer 1.} | 194 | +1 ; @r{Also the integer 1.} |
| 195 | 268435457 ; @r{Also the integer 1 on a 28-bit implementation.} | 195 | 536870913 ; @r{Also the integer 1 on a 29-bit implementation.} |
| 196 | @end group | 196 | @end group |
| 197 | @end example | 197 | @end example |
| 198 | 198 | ||
| @@ -365,9 +365,8 @@ modifier key. The integer that represents such a character has the | |||
| 365 | @ifnottex | 365 | @ifnottex |
| 366 | 2**27 | 366 | 2**27 |
| 367 | @end ifnottex | 367 | @end ifnottex |
| 368 | bit set (which on most machines makes it a negative number). We | 368 | bit set. We use high bits for this and other modifiers to make |
| 369 | use high bits for this and other modifiers to make possible a wide range | 369 | possible a wide range of basic character codes. |
| 370 | of basic character codes. | ||
| 371 | 370 | ||
| 372 | In a string, the | 371 | In a string, the |
| 373 | @tex | 372 | @tex |