O'Reilly logo

Microsoft® Visual Basic® 2010 Developer’s Handbook by Klaus Löffelmann and Sarika Calla Purohit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementable Operators: an Overview

You’ll probably be amazed at which operators you can implement with operator procedures. Table 14-1 provides an overview.

Important

Note that some functions can only be implemented in pairs.

The Intended Mathematical Function column is just meant to provide you with an implementation guideline. In the end, nobody can stop you from subtracting your data types with +, or adding them with –. It’s up to you.

Table 14-1. Operators in Visual Basic 2010 for the Implementation of Custom Types

Operator

Intended mathematical function

Note

+

Addition

 

Subtraction

 

\

Division without remainder

 

/

Division

 

^

Power

 

&

Composition

 

<<

Move left

Normally bit-wise with integers.

>>

Move right

Normally bit-wise with integers.

=

Test for equivalency ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required