[rdnzl-devel] Resolving assemblies in user-defined paths from lisp now works
Edi Weitz
edi at agharta.de
Thu Feb 14 10:42:04 UTC 2008
On Wed, 13 Feb 2008 22:55:15 +0100, "Iver Odin Kvello" <iverodin at gmail.com> wrote:
> 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
> NIL
> RDNZL-USER 4 > (pushnew (translate-logical-pathname #P"rdnzl:examples;")
> *additional-assembly-directories*)
> 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 :)
Nice... :)
> 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.
I'll add a link from the docs to your email.
More information about the rdnzl-devel
mailing list