bri189a Posted September 24, 2004 Posted September 24, 2004 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) :( Quote
*Experts* mutant Posted September 24, 2004 *Experts* Posted September 24, 2004 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 :). Quote
Administrators PlausiblyDamp Posted September 24, 2004 Administrators Posted September 24, 2004 Operator overloading is in the next version of VB. IIRC they are not introducing the ++ or -- operators though - however this is worth a glance. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.