One of the features I always missed in VisualBasic was bitwise shifting. One of my most used features in earlier years, because it was especially useful for evaluating registers and masking out values. Since it was always rather easy to develop GUI applications with VB, I often hit the limits of it (as of version 6.0 and earlier).
The only way around it was to write a DLL in C and import it in VB to shift bits left and right. A lot of time has passed since then, and I did not need shifting as much anymore.
Yesterday, however, when working on ClanTools, I forgot the “” in MsgBox(“100>>25”). When the program hit this line, the message box showed “25”, which puzzled me at first, but then I realized that VB 2005 now actually supports bit-shifting! I wonder if I just overlooked it or Microsoft never actually announced it in a big way. They should have done so, it really adds to VisualBasic as a language.

Scroll to Top