<p>You have a single quote floating out there with nothing after it.</p>
<p>You probably should also define hrs1 and hrs2 to something, and not rely on `set!' to return a value.</p>
<div class="gmail_quote">On Oct 31, 2011 11:45 AM, "Steve Graham" <<a href="mailto:jsgrahamus@yahoo.com">jsgrahamus@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="color:#000;background-color:#fff;font-family:garamond, new york, times, serif;font-size:12pt"><div style="font-family:garamond, 'new york', times, serif;font-size:12pt">Newbie here.  I'm trying to run a scheme program from gsi and getting an error I don't understand:</div>
<div style="font-family:garamond, 'new york', times, serif;font-size:12pt"><br></div><div><div><font face="garamond, 'new york', times, serif"><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>type timecalc.sch</div>
<div>(define hrs1)</div><div>(define hrs2)</div><div>(display "Hrs 1: ") (set! hrs1 (read))</div><div>(display "\nHrs 2: ") (set! hrs2 (read))</div><div><br></div><div>(print "\n\n" (+ hrs1 hrs2) " hours --> $" (* (+ hrs1 hrs2) 22))'</div>
<div><br></div><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>gsi -:d0 timecalc.sch</div><div><br></div><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>gsi timecalc.sch</div><div>*** ERROR
 IN "timecalc.sch"@7.1 -- Datum expected</div><div><div><br></div><div>C:\gambit\gambitv4.6.2\v4.6.2\bin>gsi</div><div>Gambit v4.6.2</div><div><br></div><div>> (load "timecalc.sch")</div><div>*** ERROR IN "timecalc.sch"@7.1 -- Datum expected</div>
<div>1></div></div><div><br></div><div>Any tips?</div><div><br></div><div>TIA, Steve</div></font></div></div></div></div><br>_______________________________________________<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" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div>