<div dir="ltr"><div>Not really gambit specific but it works like this:</div><div><br></div>#!/usr/local/Gambit-C/bin/scheme-r5rs -:s<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 1:49 PM, Roy Pfund <span dir="ltr"><<a href="mailto:roypfund@gmail.com" target="_blank">roypfund@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The shebang "#!/usr/bin/env scheme-r5rs -:s" doesn't even call Gambit, an gives the following error:</div><div><br></div><div>/usr/bin/env: scheme-r5rs -:s: No such file or directory</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 26, 2014 at 9:31 PM, James Baker <span dir="ltr"><<a href="mailto:cycle.code.media@gmail.com" target="_blank">cycle.code.media@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I dont use them but I think for memory scheme-r5rs and the like only set case sensitivity and keyword preferences, it wont make syntax-rules / syntax-case available to you for that you would still need tell it to load eg.</div><div><br></div><div>scheme-r5rs -:s</div><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 1:20 PM, Roy Pfund <span dir="ltr"><<a href="mailto:roypfund@gmail.com" target="_blank">roypfund@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm using <span style="font-family:arial,sans-serif;font-size:13px">scheme-r5rs not the regular gsi and your solution doesn't work;</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">So d</span><span style="font-family:arial,sans-serif;font-size:13px">oes anyone know how I can set </span><span style="font-family:arial,sans-serif;font-size:13px">"standard Scheme mode" just like </span><span style="font-family:arial,sans-serif;font-size:13px">the command line option "-:s" from within a executable scheme file??</span></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Sun, Oct 26, 2014 at 4:58 PM, James Baker <span dir="ltr"><<a href="mailto:cycle.code.media@gmail.com" target="_blank">cycle.code.media@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I know its not exactly what you asked for, but I found this gambit<br>
specific trick recently.<br>
<br>
(##include "~~/lib/_gambit#.scm")<br>
(define-runtime-syntax λ (##make-alias-syntax '##lambda))<br>
<br>
Which you can use as normal:<br>
<br>
> (define square (λ (x) (* x x)))<br>
> square<br>
#<procedure #2 square><br>
> (square 42)<br>
1764<br>
><br>
<span><font color="#888888"><br>
James<br>
</font></span><div><div><br>
On Mon, Oct 27, 2014 at 5:20 AM, Roy Pfund <<a href="mailto:roypfund@gmail.com" target="_blank">roypfund@gmail.com</a>> wrote:<br>
> From <a href="http://stackoverflow.com/a/26570837/144020" target="_blank">http://stackoverflow.com/a/26570837/144020</a> I tried the following:<br>
><br>
> (define-syntax λ (syntax-rules () ((_ param body ...) (lambda param body<br>
> ...))))<br>
><br>
> It works! but ONLY IF you call the script from the gsi not with<br>
><br>
> #!/usr/bin/env scheme-r5rs<br>
><br>
> Does anyone know I can set the command line OPTION s|S "set standard Scheme<br>
> mode" from within a scheme file??<br>
><br>
</div></div><div><div>> _______________________________________________<br>
> Gambit-list mailing list<br>
> <a href="mailto:Gambit-list@iro.umontreal.ca" target="_blank">Gambit-list@iro.umontreal.ca</a><br>
> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div dir="ltr"><span style="font-family:'Andale Mono','Courier New','Courier',monospace"><br><hr>
<img src="http://i.imgur.com/FfatSFS.png" style="float:left;width:128px">
<a href="mailto:RoyPfund@gmail.com" target="_blank">RoyPfund@gmail.com</a><br>
<a> AT1-ROY-BOY1 </a><br>
<a>(281-769-2691)</a></span></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="font-family:'Andale Mono','Courier New','Courier',monospace"><br><hr>
<img src="http://i.imgur.com/FfatSFS.png" style="float:left;width:128px">
<a href="mailto:RoyPfund@gmail.com" target="_blank">RoyPfund@gmail.com</a><br>
<a> AT1-ROY-BOY1 </a><br>
<a>(281-769-2691)</a></span></div>
</div>
</div></div></blockquote></div><br></div>