<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'd call that a bug in the ANSI spec. It violates the principle of least surprise for no benefit whatsoever. If X is unconditionally bound to NIL then there is no point in even having it in scope when the result-form is evaluated.<div><br></div><div>rg</div><div><br><div><div>On Aug 13, 2009, at 6:28 AM, Tim Bradshaw wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 13 Aug 2009, at 12:31, Arthur W Cater wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; 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; "><div><font class="Apple-style-span" face="Times, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif">a form like</font></div><div><font class="Apple-style-span" face="Times, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"> (dolist (X list-of-xs expr-not-using-X)</font></div><div><font class="Apple-style-span" face="Times, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"> (declare (type mytype X))</font></div><div><font class="Apple-style-span" face="Times, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"> stuff-involving-X)</font></div><div><font class="Apple-style-span" face="Times, Arial, 'Bitstream Vera Sans', Helvetica, sans-serif"> provoking a complaint that NIL is not of type MYTYPE</font></div></span><br class="Apple-interchange-newline"></blockquote></div><br><div>I'm pretty sure that's not a bug. X is defined to be bound to NIL when the result-form is evaluated. So unless NIL is an instance of MYTYPE your declaration is wrong.</div></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></body></html>