Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

It doesn't appear you can do |= or &= is VB...am I going to have to:

 

MyFlags = MyFlags Or Flags.Type5

 

to do the equivenlat of:

 

MyFlags |= Flags.Type5

 

And there's no ++ or -- either? They have += and -+ and *= and /= but not increment or decrement.... and how am I suppose to do operator overloading? It's so much nicer to have:

 

result = Vertex4 * Vertex5

 

I'm going to have to go back to:

 

result = Vertex4.Multiply(Vertex5)? - or -

result = Vertex.Multiply(Vertex4, Vertex5)

 

:(

  • *Experts*
Posted

You just have to live with the facts :), or wait and see if they will be added in the next version.

You could get get something equivalent to:

MyFlags |= Flags.Type5

As in:

MyFlags += Flags.Type5

But only if you turned off Option Strict and we know you don't want to do that :).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...