Hi,

Responding to Dominique Pelle's comments (which somehow are not added to
the PR):

>
> What happens if you do:
>
> 42 >> -1 (in C, shifting by negative number is undefined behavior, in
> Vim it should be an error or maybe 0?)
>

In this case, Vim will display the "E1283: bitshift amount must be a
positive number"
error message.

>
> 42 << 100 or 42 >> 100 (in C, shift by more bits than the underlying
> type is undefined behavior, in Vim it should be an error or maybe 0?)
>

In this case, Vim will display the "E1284: bitshift amount is too large"
error message.

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3DeQuZ2ChaHU4x8umEQ%2BzYesqw4n-0A9K-du8_xMkNmuA%40mail.gmail.com.

Raspunde prin e-mail lui