[rdnzl-devel] A patch for CAST to enable casting to types from assemblies loaded using LoadFrom
Iver Odin Kvello
iok at selvaag.no
Fri May 11 10:13:32 UTC 2007
Hello,
Here is another set of patches that fixes a small issue with CAST: the
current CAST uses GetType with an assembly-qualified type-name only,
and therefore will not work with types in an assembly loaded using
System.Reflection.Assembly.LoadFrom and similar. The patch makes CAST
use a Type-object directly if passed one instead of a type-name, like
NEW already did.
That is, one can do
(setf assembly (invoke "System.Reflection.Assembly" "LoadFrom" url))
(setf mytype (invoke assembly "GetType" sometypename))
(cast someobject mytype)
This should be the minimal neccessary support for these kinds of
assemblies in case they are needed for an application.
Regards,
Iver Odin Kvello
iok at selvaag.no
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdnzl-cast.patch
Type: application/octet-stream
Size: 1736 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/rdnzl-devel/attachments/20070511/8e8e9970/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rdnzl-cpp-cast.patch
Type: application/octet-stream
Size: 3526 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/rdnzl-devel/attachments/20070511/8e8e9970/attachment-0001.obj>
More information about the rdnzl-devel
mailing list