[gambit-list] Unicode silliness
Bradley Lucier
lucier at math.purdue.edu
Thu Jan 19 20:02:03 EST 2017
> On Jan 19, 2017, at 7:57 PM, Marc Feeley <feeley at iro.umontreal.ca> wrote:
>
> If you try this, make sure you start gsi with the -:t8 flag so that the terminal input/output is UTF-8 encoded. That way you can edit the lines more easily.
Really? This seems to work OK (in a Mac OS X Terminal window):
[Media-Mac-mini-3:~] lucier% cat hamburger.scm
(define (🍔 x)
(if (< x 2)
1
(+ (🍔 (- x 2))
(🍔 (- x 1)))))
[Media-Mac-mini-3:~] lucier% emacs hamburger.scm
[Media-Mac-mini-3:~] lucier% gsi
Gambit v4.8.6
> (load "hamburger")
"/Users/lucier/hamburger.scm"
> (🍔 6)
13
> (🍔 7)
21
> (🍔 8)
34
>
More information about the Gambit-list
mailing list