Hi,<br> I am not able to create table or hash-table in r5rs.<br><br>(define tbl (make-hash-table))<br> Its giving error "unbound identifier in module".<br> In the help also i am unable to find it. <br> Can you please tell me how to do this. Or there is<br>
way to access mzscheme library in r5rs.<br> Also how to access all documentation for r5rs, since<br> i am using this as module lang.<br> <br>Thanks and Regards<br>Vinay sachdev<br><br><div class="gmail_quote">On Sat, Jan 17, 2009 at 7:39 AM, Jens Axel Soegaard <span dir="ltr"><<a href="mailto:jensaxel@soegaard.net">jensaxel@soegaard.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Vinay Sachdev skrev:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
I am reading SICP and i am at the start of chap-3.<br>
I am using PLT-Scheme ver-4.0 .I ran into problem with<br>
mutable pairs. it was giving error. So instead of using<br>
set-car! i used set-mcar!, but then even to create list<br>
i have to create mutable list.<br>
I have an older version also(ver-3.71). Is it a bad idea to<br>
install older version or is there any other way out?<br>
</blockquote>
<br></div>
In the module language, try this:<br>
<br>
#lang r5rs<br>
(let ((p (cons 1 2)))<br>
(set-car! p 4)<br>
(display p))<br>
<br>
It prints (4 . 2).<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My main purpose is to do read SICP and do its exercise.<br>
One more question, is there any other issues with<br>
PLT-Scheme in later chapters of SICP?<br>
</blockquote>
<br></div>
When you come to the picture language, use this<br>
PLaneT package:<br>
<br>
<a href="http://planet.plt-scheme.org/package-source/soegaard/sicp.plt/2/1/planet-docs/sicp-manual/index.html" target="_blank">http://planet.plt-scheme.org/package-source/soegaard/sicp.plt/2/1/planet-docs/sicp-manual/index.html</a><br>
<font color="#888888">
<br>
<br>
/Jens Axel<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards<br>Vinay Sachdev<br>