<div dir="ltr">I found Chapter 6 of the Guide to be helpful with this material.<div><br></div><div>Anthony<br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 4:02 PM, Raoul Duke <span dir="ltr"><<a href="mailto:raould@gmail.com">raould@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi,<br>
<br>
i'm a plt-clueless newbie trying to do some basic module stuff. i<br>
sorta figured out why things weren't working, but i still haven't<br>
managed to figure it all out yet and get it all working, so i'd like<br>
to ask for help!<br>
<br>
(A) comment on a newbie user experience: figuring out how to be able<br>
to write modules is way harder than it should be. i think it is due<br>
to:<br>
<br>
1) how you write a module in a file depends on context. as i recently<br>
finally figured out, if you use "#lang scheme" then you do not use<br>
"(module..." [otherwise you get error messages which are not very<br>
helpful to the newbie :-].<br>
<br>
2) the documentation which a newbie finds by googling around for<br>
things like "plt scheme module" do not explain that; it was only out<br>
of sheer luck and desperation that i finally checked<br>
<a href="http://docs.plt-scheme.org/quick/#(part._.Modules)" target="_blank">http://docs.plt-scheme.org/quick/#(part._.Modules)</a>.<br>
<br>
3) the complexity of the subject is probably the kind of thing that is<br>
hard to explain well in a static html/ascii form, rather than in<br>
person, and maybe plt scheme is 99% used in situations where there's a<br>
TA available? nevertheless if i ever figure out the nuances then<br>
hopefully future folks will google and stumble across this thread :-)<br>
<br>
(B) unfortunately, even though i now know why my use of "(module..."<br>
which is what the overwhelming majority of all docs i found told me to<br>
use was not right given that i had #lang scheme in there, which i was<br>
also doing because seemingly most all the intro docs told me to, i'm<br>
*still* lost as to how to make a module that works. if i remove the<br>
"#lang scheme" and try to (require scheme) i still get errors (like<br>
"expand: unbound variable in module in: new" because i'm trying to use<br>
scheme/gui/base's new frame%, new canvas%, etc.), and if i try to use<br>
"#lang scheme" instead then i don't see how i can actually create a<br>
new namespace for my stuff.<br>
<br>
any edification would be appreciated.<br>
thank you!<br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</blockquote></div><br></div></div>