<div dir="ltr">cool :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 19, 2017 at 5:08 PM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes it “works”… but for the wrong reasons… try<br>
<br>
(pp 🍔)<br>
<br>
and you will see your code has no burger in it.  That’s because when you entered a burger at the terminal Gambit saw that as a 4 character symbol, i.e. |\360\237\215\224| .  To get a real burger (single Unicode character), you need the -:t8 .<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
> On Jan 19, 2017, at 8:02 PM, Bradley Lucier <<a href="mailto:lucier@math.purdue.edu">lucier@math.purdue.edu</a>> wrote:<br>
><br>
><br>
>> On Jan 19, 2017, at 7:57 PM, Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>> wrote:<br>
>><br>
>> 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.<br>
><br>
> Really?  This seems to work OK (in a Mac OS X Terminal window):<br>
><br>
> [Media-Mac-mini-3:~] lucier% cat hamburger.scm<br>
> (define (🍔 x)<br>
>  (if (< x 2)<br>
>      1<br>
>      (+ (🍔 (- x 2))<br>
>         (🍔 (- x 1)))))<br>
> [Media-Mac-mini-3:~] lucier% emacs hamburger.scm<br>
> [Media-Mac-mini-3:~] lucier% gsi<br>
> Gambit v4.8.6<br>
><br>
>> (load "hamburger")<br>
> "/Users/lucier/hamburger.scm"<br>
>> (🍔  6)<br>
> 13<br>
>> (🍔  7)<br>
> 21<br>
>> (🍔  8)<br>
> 34<br>
>><br>
><br>
<br>
______________________________<wbr>_________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://webmail.iro.umontreal.<wbr>ca/mailman/listinfo/gambit-<wbr>list</a><br>
</div></div></blockquote></div><br></div>