[rdnzl-devel] Resolving assemblies in user-defined paths from lisp now works

Iver Odin Kvello iverodin at gmail.com
Wed Feb 13 21:55:15 UTC 2008

 With the new code, adding lisp functions to the AssemblyResolve event
handler now works,  as in the following example of loading AproposGui
directly from the examples subdirectory without using LoadFrom:

RDNZL-USER 3 > (load-assembly "AproposGui")
Warning: Returning NULL object from .NET call
RDNZL-USER 4 > (pushnew (translate-logical-pathname #P"rdnzl:examples;")
RDNZL-USER 5 > (install-assembly-resolve-handler)
#<RDNZL::CONTAINER System.ResolveEventHandler #xBD6E28>
RDNZL-USER 6 > (load-assembly "AproposGui")
#<RDNZL::CONTAINER System.Reflection.Assembly #xBD7078>

Very satisfying :)

One isn't really supposed to do this, apparently, but it's pretty
convenient, especially for stuff like AproposGui, and possibly
something to add to the examples in itself.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: AddAssemblyPath.lisp
Type: application/octet-stream
Size: 2356 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/rdnzl-devel/attachments/20080213/f2879920/attachment.obj>

More information about the rdnzl-devel mailing list