[rdnzl-devel] A question about CAST
Edi Weitz
edi at agharta.de
Fri Apr 27 07:37:38 UTC 2007
On Thu, 26 Apr 2007 17:43:29 +0200, "Iver Odin Kvello" <iok at selvaag.no> wrote:
> Only for certain objects, but I can reproduce it fairly easily:
>
> RDNZL-USER(5): (import-types "System" "Net.WebClient")
> NIL
> RDNZL-USER(6): (setf w (new "System.Net.WebClient"))
> #<RDNZL::CONTAINER System.Net.WebClient #xda75ac8>
> RDNZL-USER(7): (cast w "System.Object")
> Error: .NET error (System.InvalidCastException): Object must implement
> IConvertible.
> [condition type: RDNZL-ERROR]
>
> I didn't think of it as an issue; I just assumed it was some sort of
> .Net restriction.
Yes, it is - I checked the .NET documentation. Thanks for the info.
More information about the rdnzl-devel
mailing list