> In most cases you can use a script-local variable. In Vim9 script you
> can give these a type and that will be enforced. This works best,
> because references to the variable will be in the same script, the
> knowledge of what the variable is for and what it's type is is
> localized.
Exactly how I approach every new function, global is my last resort.
Thanks for your replies.
Samson
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220217090024.00005985%40cfl.rr.com.
Thursday, February 17, 2022
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment