Thanks a lot.

By on 3/15/2008 8:49 PM ()

Yes, that is part of the type inference system of F#. Another example of this is creating enums.

If you have a Discriminated Union type and all of the data tags have an integer value, then the type is a .Net enumeration. For example:

type EnumType =
A = 1
B = 2
C = 3

By on 3/15/2008 6:44 PM ()

Yes, thats correct. If a type has all concrete members then it becomes a class, if it has all abstract members then it becomes an interface. I believe if it has a mixture of the two then it becomes an abstract class.

Cheers,
Rob

By on 3/15/2008 9:40 AM ()
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