Sign in to follow this  
samv

[SlimDX] Why is AvailableTextureMemory signed?

Recommended Posts

Unsigned types aren't really part of the underlying type system and so not all languages can consume them correctly (in theory). Why they didn't force them as part of the spec, I don't know exactly, but basically you can't be a CLS compliant assembly if you expose unsigned stuff. We try to stick to the rules where possible and let clients convert to unsigned as necessary.

Share this post


Link to post
Share on other sites
Unsigned types are not part of the CLS, because the CLS was designed to be as broadly applicable as possible, and not all languages have support for unsigned types. In theory languages that do have them could represent them differently, but I don't think that's a huge concern since actual types consumed by the underlying runtime are not necessarily the same types as those exposed by the runtime (CIL only understands 32 and 64 bit integers, "native" (e.g., unspecified) format floats and unsigned values, object references, and references to within an object, et cetera.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this