Operator Overloading?
Operator Overloading?
Operator Overloading?
Operator Overloading?
Operator Overloading?
Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading?
Operator Overloading? Operator Overloading?
Operator Overloading?
Go Back  Xtreme Visual Basic Talk > > > Operator Overloading?


Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2005, 12:29 PM
Moohasha's Avatar
Moohasha Moohasha is offline
Centurion
 
Join Date: Nov 2004
Location: Texas
Posts: 165
Default Operator Overloading?


Does VB.Net allow operator overloading like C++.Net (and every other version of C for that matter) does?
For example, if I create a class called Matrix and want to supply a * operator to perform Matrix multiplication ([M1] * [M2] = [M3]), can I overload the * operator to read in matrices, or do I just need to stick with creating a function called Multiply?
I tried searching the forums for this but didn't find anything.
__________________
"The whole trouble comes from the fact that there is so much tinkering with software. It is not made in a clean fabrication process, which it should be. What we need, is software engineering." — F.L. Bauer, 1968
Reply With Quote
  #2  
Old 09-28-2005, 12:40 PM
Zumwalt Zumwalt is offline
Contributor
 
Join Date: Sep 2003
Location: Tampa, FL
Posts: 474
Default

Closest article I can point you to, that might help you get started on the answer is:

http://msdn.microsoft.com/library/de...ml/vs03h12.asp
Reply With Quote
  #3  
Old 09-28-2005, 01:09 PM
Volte's Avatar
VolteOperator Overloading? Volte is offline
Ultimate Contributor

Retired Leader
* Guru *
 
Join Date: Aug 2001
Posts: 5,344
Default

VB.NET does not support operator overloading currently.
Reply With Quote
  #4  
Old 09-28-2005, 02:33 PM
Csharp's Avatar
CsharpOperator Overloading? Csharp is offline
Senior Contributor

* Expert *
 
Join Date: Jul 2003
Location: Ashby, Leicestershire.
Posts: 967
Default

check this msdn article for alternative guidance ... Operator Overloading Usage Guidelines
__________________
~~ please don't PM me regarding code, I only reply to personnal messages ~~
Reply With Quote
  #5  
Old 09-28-2005, 03:14 PM
Iceplug's Avatar
IceplugOperator Overloading? Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

Operator Overloading is available in .NET 2005, however it is not available in 2002 or 2003 (the earlier versions that have been fully released).

Operator Overloading in VB 2005 - Dealing with fractions
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Operator Overloading?
Operator Overloading?
Operator Overloading? Operator Overloading?
Operator Overloading?
Operator Overloading?
Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading? Operator Overloading?
Operator Overloading?
Operator Overloading?
 
Operator Overloading?
Operator Overloading?
 
-->