bitwise shift?

Sherm Pendley spamtrap at dot-app.org
Wed Apr 25 20:34:06 EDT 2007


John Machin <sjmachin at lexicon.net> writes:

> On 26/04/2007 7:10 AM, Sherm Pendley wrote:
>
>> Shift left is *not* the same as multiplying by k. It is the same as multi-
>> plying by 2^k. 
>
> Where I come from, ^ is the exclusive-or operator. Of course YMMV in WV :-)

Make that YMMV in VB. :-(

Funny thing is, I haven't written in VB since '95 or thereabouts. Let that be
a lesson for the youngsters - touch not the unclean beast called VB, lest its
vileness stain thy code for all time!

sherm--

-- 
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net



More information about the Python-list mailing list