Overriding operators

C

Cor Ligthert

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
 
S

Simon Jefferies

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
-
 
H

Herfried K. Wagner [MVP]

* "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.
 
H

Herfried K. Wagner [MVP]

* "Simon Jefferies said:
Trying to get around the System.UInt32 not having the +/- operators.

These operators will be available in VS.NET 2005.
 
J

Jay B. Harlow [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top