HighTechTalks DotNet Forums  

System.UInt32 + Operator

VB.net microsoft.public.dotnet.languages.vb


Discuss System.UInt32 + Operator in the VB.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Simon Jefferies
 
Posts: n/a

Default System.UInt32 + Operator - 04-16-2004 , 09:31 AM






Hello,

Please can tell me why there is no "+" operator and others for a
System.UInt32 etc.

Thanks In Advance

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:simonj (AT) headfirst (DOT) co.uk
www.headfirst.co.uk www.callofcthulhu.com
-



Reply With Quote
  #2  
Old   
Armin Zingler
 
Posts: n/a

Default Re: System.UInt32 + Operator - 04-16-2004 , 10:19 AM






"Simon Jefferies" <simonj (AT) headfirst (DOT) co.uk> schrieb
Quote:
Please can tell me why there is no "+" operator and others for a
System.UInt32 etc.
Probably because Uint32 is not CLS compliant. (see
System.CLSCompliantAttribute)


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html



Reply With Quote
  #3  
Old   
SuperRider
 
Posts: n/a

Default Re: System.UInt32 + Operator - 04-16-2004 , 02:51 PM



Because MS still thinks of VB.NET as a "toy" language.

You can always converto the UInt to an Int64, add to it, and convert it
back.

Operators for unsigned integers is coming in the next .NET release
(Whidbey).

"Simon Jefferies" <simonj (AT) headfirst (DOT) co.uk> wrote

Quote:
Hello,

Please can tell me why there is no "+" operator and others for a
System.UInt32 etc.

Thanks In Advance

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:simonj (AT) headfirst (DOT) co.uk
www.headfirst.co.uk www.callofcthulhu.com
-





Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: System.UInt32 + Operator - 04-16-2004 , 04:02 PM



* "Simon Jefferies" <simonj (AT) headfirst (DOT) co.uk> scripsit:
Quote:
Please can tell me why there is no "+" operator and others for a
System.UInt32 etc.
They will work in the text version, Whidbey. Notice that unsigned
datatypes should not be used in interfaces (I am not referring to an
interface which can be implemented) because, as Armin says, they are not
CLS compliant.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.