<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Well, ASDF doc (here: <a href="https://common-lisp.net/project/asdf/asdf/The-defsystem-form.html">https://common-lisp.net/project/asdf/asdf/The-defsystem-form.html</a>) is not that clear about this. It shows an example .asd file, which does have an in-package, albeit to package asdf-user, and says of it:<br></div>
<div> </div>
<div>The file starts with an <code>in-package</code> form
for package <code>asdf-user</code>.  Quick summary: just do this, because it
helps make interactive development of <code>defsystem</code> forms behave in
the same was as when these forms are loaded by ASDF. ... The <code>in-package</code> form
will ensure that the system definition is read the
same as within ASDF when you load it interactively with <code>cl:load</code>.
However, we recommend that you load <samp>.asd</samp> files
through function <code>asdf::load-asd</code> rather than through <code>cl:load</code>,
in which case this form is unnecessary.<br></div>
<div> </div>
<div>Don't mean to hijack usocket for ASDF complaints, but shouldn't asdf::load-asd be exported?<br></div>
<div> </div>
<div>Thanks,<br></div>
<div>Mark<br></div>
<div> </div>
<div> </div>
<div>----- Original message -----<br></div>
<div>From: Zach Beane <<a href="mailto:xach@xach.com">xach@xach.com</a>><br></div>
<div>To: "Mark H. David" <<a href="mailto:mhd@yv.org">mhd@yv.org</a>><br></div>
<div>Cc: usocket development <<a href="mailto:usocket-devel@common-lisp.net">usocket-devel@common-lisp.net</a>><br></div>
<div>Subject: Re: why is usocket.asd without an in-package or package qualifiers?<br></div>
<div>Date: Tue, 16 Jun 2015 14:54:36 -0400<br></div>
<div> </div>
<div dir="ltr"><div>ASDF establishes a particular environment when using asdf:find-system and asdf:load-system that is not duplicated by a plain CL:LOAD. It has always been this way. You cannot reliably use CL:LOAD to load a system file and have things work.<br></div>
<div> </div>
<div>Zach<br></div>
</div>
<div><div> </div>
<div><div>On Tue, Jun 16, 2015 at 2:50 PM, Mark H. David <span dir="ltr"><<a href="mailto:mhd@yv.org">mhd@yv.org</a>></span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div>I notices there's no in-package or qualifiers present in usocket.asd.<br></div>
<div>
So you have to, it seems, do (in-package :asdf) or similar before loading this file.<br></div>
<div>
Is there any good reason for this?  I was thinking of fixing this and doing a pull request. Anyone against?<br></div>
<div>
Thanks,<br></div>
<div>
Mark<br></div>
<div> </div>
</blockquote></div>
</div>
<div> </div>
</body>
</html>