From e58c7181c81b0405b89ed89110586f9e097f8f27 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 9 Dec 2009 23:15:57 -0800 Subject: [PATCH] New list of big differences from real Emacs Lisp --- DIFFERENCES | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 DIFFERENCES diff --git a/DIFFERENCES b/DIFFERENCES new file mode 100644 index 0000000..0497fe9 --- /dev/null +++ b/DIFFERENCES @@ -0,0 +1,20 @@ + +Differences between the real Emacs Lisp and elisp.js. It might seem +silly to start this at such an early stage but at the same time, why +not start now. It might help keep a reality check on this project. + + +No Overflow on Math Ops +======================= + +There is no overflow on math operations as the native JavaScript +number type is used. Emacs uses at least 29 bits and supports +integers from -268,435,456 to 268,435,455. + +Emacs: (+ 200000000 200000000) #=> -136870912 + 536870913 #=> 1 + +elisp> (+ 200000000 200000000) #=> ["number", 400000000] + 536870913 #=> ["number", 536870913] + +