Hi,
A continue in a try-catch clause doesn't return control to
the beginning of a while loop as shown by the script
below:
=======================================
vim9script
g:Count = 0
def Test()
while g:Count < 2
echomsg "Before try"
try
echoerr 'Test'
catch
g:Count += 1
echomsg "Caught exception"
continue
endtry
echomsg "After try"
g:Count += 1
endwhile
enddef
Test()
=======================================
If you source the above script, the message "After try" will be printed
(which is not expected because of the continue in the catch clause).
- 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/CAAW7x7nfY6CshKZ5cCx2Q6gk6esjDhQMT1e5HSDn6CZX-2sjjA%40mail.gmail.com.