What is Max doing here?
...it prints out 184.
Now I know that 3000 is larger than what a Byte can handle. I just want to know why it printed out 184 instead of crashing or compiling for that matter.
Edit:
Ok I know why it compiled, so why the output instead of a crash?
This could be very to debug if you're not careful when programming.
And one cool thing about vb.net is that it won't even let you compile. It says 'Constant expression is not representable in type Byte.'
Local i:Byte i = 3000 Print i
...it prints out 184.
Now I know that 3000 is larger than what a Byte can handle. I just want to know why it printed out 184 instead of crashing or compiling for that matter.
Edit:
Ok I know why it compiled, so why the output instead of a crash?
This could be very to debug if you're not careful when programming.
And one cool thing about vb.net is that it won't even let you compile. It says 'Constant expression is not representable in type Byte.'