Re: Differences between VB6 and VB.Net causing problem




"Bill McCarthy" <Bill@xxxxxxxxxxxxx> wrote

(4) This one's for Larry. Bitwise operators require the types to be bitwise.
In VB6 only byte, Integer and Long are bitwise numerics. You can't do
bitwise operations directly on a Decimal type: a conversion, implicit or
otherwise, is required to one of the bitwise types first.
(5) Also for Larry: True is 16 bit. Boolean is 16 bit.

You know it all, don't you?

You said:
Oh, and for the record, VB6 and VB.NET do NOT store 0 and -1.

I said:
What do you get when you try to store True to a Decimal type?

You said:
Yeh my bad I should have said all bitwise types. ...
(bitwise types are the types you can use And, Or and XOr with)

I then showed you that Decimals can use bitwise operators,
so you change that to:

You said:
You can't do bitwise operations directly on a Decimal type:
a conversion, implicit or otherwise, is required to one of
the bitwise types first.

All the while saying I don't know what I'm talking about???
How about you get your facts straight BEFORE jumping on
the keyboard?

The native type for VB6 is 32 bits. It would be more
likely that 'True' starts out as a native type, than for any
other type. I can't prove it does, any more than you can
prove it doesn't, yet you know for sure, because you say
so....

You have been showing such blatent arrogance in your
responses that I have lost interest in discussing it with you
any further.

This is going to be my last post to this thread, regardless
of your reply.

LFS



.



Relevant Pages

  • Re: puzzle
    ... Most modern languages do support bitwise operations on integers. ... Perl has bitwise xor. ...
    (comp.programming)
  • Re: BOZ literal constants, a puzzle for us Standard-loving types.
    ... I wouldn't be surprised to find that it's assigning it to an 8-byte integer and then simply wrapping it without throwing an error when it gets assigned to i. ... -- don't seem to follow the "treat BOZ-literals as a bitwise representation" rule. ... less sense for bitwise operations, but for integer operations it will ... though only in twos complement. ...
    (comp.lang.fortran)
  • VB coverage in new online mag - VB6 or VB.NET?
    ... coverage of VB6 v VB.NET at the moment. ... who's written the VB column in PC Plus magazine in the UK for the last seven ... He codes in both VB6 and VB .NET and will be covering both over ... you can find a bit more info on Bitwise at the web site ...
    (microsoft.public.vb.general.discussion)