aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2003-10-22 02:46:08 +0000
committerLuc Teirlinck2003-10-22 02:46:08 +0000
commitd5e7aa502ba8a7b9b47c21e73c5ef23f9de0e0ab (patch)
tree5d75ae1cdc66a17e5b68cf196d4bed614c7be179
parent6cfb0777b0b3eb2f0607823d2728053387450e26 (diff)
downloademacs-d5e7aa502ba8a7b9b47c21e73c5ef23f9de0e0ab.tar.gz
emacs-d5e7aa502ba8a7b9b47c21e73c5ef23f9de0e0ab.zip
(Integer Type): Update for extra bit of integer range.
(Character Type): Ditto.
-rw-r--r--lispref/objects.texi19
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
165134217727 (28 bits; i.e., 165268435455 (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
172to 172to
173@ifnottex 173@ifnottex
1742**27 - 1) 1742**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
179on most machines. (Some machines may provide a wider range.) It is 179on most machines. (Some machines may provide a wider range.) It is
180important to note that the Emacs Lisp arithmetic functions do not check 180important to note that the Emacs Lisp arithmetic functions do not check
181for overflow. Thus @code{(1+ 134217727)} is @minus{}134217728 on most 181for overflow. Thus @code{(1+ 268435455)} is @minus{}268435456 on most
182machines. 182machines.
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{.}.
1921 ; @r{The integer 1.} 1921 ; @r{The integer 1.}
1931. ; @r{Also the integer 1.} 1931. ; @r{Also the integer 1.}
194+1 ; @r{Also the integer 1.} 194+1 ; @r{Also the integer 1.}
195268435457 ; @r{Also the integer 1 on a 28-bit implementation.} 195536870913 ; @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
3662**27 3662**27
367@end ifnottex 367@end ifnottex
368bit set (which on most machines makes it a negative number). We 368bit set. We use high bits for this and other modifiers to make
369use high bits for this and other modifiers to make possible a wide range 369possible a wide range of basic character codes.
370of basic character codes.
371 370
372 In a string, the 371 In a string, the
373@tex 372@tex