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 :)
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.
Regards, Iver
On Wed, 13 Feb 2008 22:55:15 +0100, "Iver Odin Kvello" iverodin@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.