On 23/03/31 11:33 AM, Bram Moolenaar wrote:
Doing
vim -c 'vim9cmd g:["my-output-dir"] = "vglob-dir"'
give this error
Error detected while processing command line:
E461: Illegal variable name: my-output-dir
Turns out
vim9script
g:["foo-bar"] = "baz"
also fails.
Both errors are intended: You cannot use a dash in a variable name.
OK. So "g:" can be treated as a dictionary as a convenience.
It's not really a dictionary.
-ernie
--
--
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/18bd1edf-f0f4-75c0-7653-22f2748e3905%40raelity.com.