<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Corey Sweeney</b> <<a href="mailto:corey.sweeney@gmail.com">corey.sweeney@gmail.com</a>><br>Date: Apr 8, 2006 7:40 PM
<br>Subject: Re: [plt-scheme] already imported identitfiers in "pretty-big"<br>To: <a href="mailto:jay@cs.brown.edu">jay@cs.brown.edu</a><br><br></span><div style="direction: ltr;">hmm, don't actually need my "third" function to come from srfi/1.ss, I
just want to not have to deal with the clash every time i write some
code. Is there a way to do:</div><div style="direction: ltr;"><span class="q"><br>
<br>
<span>(module grr (lib "plt-pretty-big-text.ss" "lang")<br></span>
</span></div><div style="direction: ltr;"><div style="direction: ltr;">
(require (except (lib "1" "srfi") `those-that-clash))<br><br> (third `(1 2 3))<br>
(fold + 1 `(1 2 3)))<br></div>
<br>
short of figureing out a "those that clash" list by hand and typing them in?<br></div><div style="direction: ltr;"><span class="sg">
<br>
Corey</span></div><div style="direction: ltr;"><span class="e" id="q_10a7be0a45e89d31_4"><br><br><div><span class="gmail_quote">On 4/8/06, <b class="gmail_sendername">Jay McCarthy</b> <<a href="mailto:jay.mccarthy@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jay.mccarthy@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">Yes. You can use the "prefix" require form to avoid name clashes, i.e.:</div><div style="direction: ltr;"><span><br><br>(module grr (lib "plt-pretty-big-text.ss" "lang")
<br></span></div><div style="direction: ltr;">
(require (prefix srfi:1: (lib "1" "srfi")))<br><br> (srfi:1:third `(1 2 3))<br> (third `(1 2 3)))<br><br>Jay<br>
<br><br><div></div><div style="direction: ltr;"><span><span class="gmail_quote">On 4/8/06, <b class="gmail_sendername">Corey Sweeney</b> <<a href="mailto:corey.sweeney@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
corey.sweeney@gmail.com</a>> wrote:</span></span></div><div style="direction: ltr;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"></blockquote>
</div><div style="direction: ltr;"><span>
<div style="direction: ltr;">The following "program":<br>
<br>
(module grr (lib "plt-pretty-big-text.ss" "lang")<br>
(require (lib "1" "srfi")))<br>
<br>
gives the following error message:<br>
<br>
module: identifier already imported (from a different source) in: third<br clear="all"><br>
<br>
Does this mean that the third function has 2 seperate implementations in the libraries?<br>
<br>
<br>
Corey<br></div><div style="direction: ltr;"><span>-- <br>((lambda (y) (y y)) (lambda (y) (y y)))
</span></div><br></span></div><div style="direction: ltr;">_________________________________________________<br> For list-related administrative tasks:<br> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br><br><br></div><br><br clear="all"><br>-- <br>Jay McCarthy <<a href="mailto:jay@cs.brown.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jay@cs.brown.edu</a>><br><a href="http://jay.makeoutcity.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://jay.makeoutcity.com/</a>
</div></blockquote></div><br><br clear="all"><br>-- <br>((lambda (y) (y y)) (lambda (y) (y y)))
</span></div><br clear="all"><br>-- <br>Jay McCarthy <<a href="mailto:jay@cs.brown.edu">jay@cs.brown.edu</a>><br><a href="http://jay.makeoutcity.com/">http://jay.makeoutcity.com/</a>