Hide this comment

See

What does this C# code look like in F#? (part one: expressions and statements)

The first section is about casts.

In your case,

((uint32) someValue)

just means

uint32 someValue

or

uint32(someValue)

In all cases, uint32 here is a library function that does numerical conversion.

By on 6/3/2009 10:21 AM ()Reply
Hide this comment

Thanks, that makes loads of sense now. So the parentheses just delimit the function, which, in the case above, just returns the function after evaluating?

By on 6/3/2009 10:56 AM ()Reply
Hide this comment

In F# integer types are not converted into each other automatically. 100 is constant of type int. To make it be uint32 constant use 'u' suffix, e.g. 100u .

By on 6/3/2009 12:38 PM ()Reply
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper

Logging in...