I wonder if there is a way to specify the type for a union type. I haven't found too much info on this. I tried:

let test : uint32 = ....

but it didn't like it.

I will be interested to see if and when this gets answered authoritatively.

By on 11/20/2007 6:36 PM ()

This thread is a little old, but thanks for the bug report. Here's a workaround:

1
2
3
4
5
6
7
8
 

type H5S_class_t =
   | H5S_NO_CLASS = 0xffffffff  // the bit-representation of -1
   | H5S_SCALAR = 0 
   | H5S_SIMPLE = 1 

You can also do:

1
2
3
4
type H5S_class_t =
   | H5S_NO_CLASS = 0u
   | H5S_SCALAR = 1u
   | H5S_SIMPLE = 2u

etc. if you need an enum with a different underlying type.

Kind regards

Don

By on 11/26/2007 12:08 PM ()
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