Overriding operators

  • Thread starter Thread starter Simon Jefferies
  • Start date Start date
Hi Simon,

Simple answer, planned in next version of VB.net, so now only C versions, (I
do not know about J#)

I hope this helps?

Cor
 
Thanks for your reply,

Trying to get around the System.UInt32 not having the +/- operators. Its a
bit tedious having to do a number of conversions to perform an addition.
Trying to work out a way of making to code a bit more elegant but will
convert to Whidbey without many changes etc...

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:[email protected]
www.headfirst.co.uk www.callofcthulhu.com
-
 
* "Simon Jefferies said:
Is there anyway to override operators (+,- etc) in VB .NET or is this only
possible through C#?

Overriding? Overloading will be possible in VB.NET Whidbey, 2005.
 
* "Simon Jefferies said:
Trying to get around the System.UInt32 not having the +/- operators.

These operators will be available in VS.NET 2005.
 
Simon,
Have you considered using C# for all your UInt32 work, at least until
Whidbey ships. Then calling the C# class library from VB.NET? In other words
encapsulate all the unsigned logic in C# classes...

Alternatively depending on how I am actually using the UInt32, I will simply
use an Integer (which is fully supported) any place I would have used a
UInt32...

Hope this helps
Jay
 
Back
Top