<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>What you call "shadowing" is actually redefinition. The standard Common Lisp definitions can normally not be redefined like this. However, they can indeed be shadowed, where "shadowing" means: The same names can be reused for symbols in your own user-defined package, and then you use those symbols instead of the original Common Lisp symbols. If you want to do this, you need to understand how the symbols and the package system in Common Lisp work.</div><div><br></div><div>The best description, in my opinion, is still the one in CLtL2: <a href="http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node111.html">http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node111.html</a></div><div><br></div><div>This is probably already sufficient, but you may also want to check the relevant entry in the HyperSpec afterwards as well: <a href="http://www.lispworks.com/documentation/HyperSpec/Body/11_.htm">http://www.lispworks.com/documentation/HyperSpec/Body/11_.htm</a></div><div><br></div><div>[CLtL2 was published before ANSI Common Lisp got finalized, so there is a chance that some minor details differ between CLtL2 and the HyperSpec - the HyperSpec is always the more current, correct description, but the presentation in CLtL2 is usually easier to understand.]</div><div><br></div><div>I hope this helps,</div><div>Pascal</div><div><br><div><div>On 15 Apr 2012, at 19:15, 박성민 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><div id="-chrome-auto-translate-plugin-dialog" style="background-image:initial!important;background-color:transparent!important;padding-top:0px!important;padding-right:0px!important;padding-bottom:0px!important;padding-left:0px!important;margin-top:0px!important;margin-right:0px!important;margin-bottom:0px!important;margin-left:0px!important;overflow-x:visible!important;overflow-y:visible!important;text-align:left!important;background-repeat:initial initial!important">
<div style=""><div class="translate"></div><div class="additional"></div></div><img src="http://www.google.com/uds/css/small-logo.png" onclick="document.location.href='http://translate.google.com/';" style="position: absolute !important; z-index: -1 !important; right: 1px !important; top: -20px !important; cursor: pointer !important;-webkit-border-radius: 20px; background-color: rgba(200, 200, 200, 0.3) !important; padding: 3px 5px 0 !important; margin: 0 !important;"></div>
<div>I update to 1.9-dev-r15327M-trunk (DarwinX8664)!.</div><div><br></div><div>I sometime shadow standard cl function.</div><div><div><br></div><div>for example..</div><div><br></div><div>(defmethod plus ((p1 number) (p2 number))</div>
<div> (+ p1 p2))</div><div><br></div><div>(defmethod plus ((p1 string) (p2 string))</div><div> (concatenate 'string p1 p2))</div><div><br></div><div>(labels ((+ (&rest rest)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> (reduce #'plus rest)))</div>
<div> (+ "clozure" " common" " lisp"))</div></div><div><br></div><div><br></div><div><div>;Compiler warnings :</div><div>; In an anonymous lambda form: Local function or macro name + shadows standard CL definition.</div>
</div><div>=> "clozure common lisp"</div><div><br></div><div><br></div><div><br></div><div>if I can ignore it, tell me what to do.... thank you.</div><div><br></div><div><br></div>
_______________________________________________<br>Openmcl-devel mailing list<br><a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>http://clozure.com/mailman/listinfo/openmcl-devel<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>--</div><div>Pascal Costanza</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>