Jump to content
  • Advertisement
Sign in to follow this  
Suudy

A couple of questions

This topic is 4736 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

We are looking for a couple of features, that we aren't sure are supported. Any info on these (soon to be, or requires us to implement)? First, we'd like to initialize arrays in a C-like fashion: uint[] x(3) = { 0xdeadbeef, 0xfeed0123, 0x01234567 }; Though this doesn't work. I don't see in the documentation (or through experimentation) any way other than: uint[] x(3); x[0] = 0xdeadbeef; x[1] = 0xfeed0123; x[2] = 0x01234567; Any info? Also, the bitwise complement doesn't seem to work on uints. For example: x = 0xfeed0123; x = ~x; Fails with "Illegal operation on this datatype." Why isn't is supported for uints, ints, etc? Thanks, Suudy

Share this post


Link to post
Share on other sites
Advertisement
not sure about the bitwise complement stuff, but shouldn't the declaration be:


uint[] x = { 0xdeadbeef, 0xfeed0123, 0x01234567 };



Share this post


Link to post
Share on other sites
Initialization lists haven't been implemented yet. I plan to implement them some day, but the priority is quite low at the moment. If you'd like to contribute with the implementation I'd be grateful.

That the bitwise complement doesn't work for uint, ought to be a bug. I'll investigate this and keep you updated.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!