Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: what are new_globals and new_read_globals? #217

Closed
idbrii opened this issue Jul 14, 2021 · 1 comment
Closed

Question: what are new_globals and new_read_globals? #217

idbrii opened this issue Jul 14, 2021 · 1 comment

Comments

@idbrii
Copy link

idbrii commented Jul 14, 2021

Custom sets of globals describes globals and read_globals:

   globals = {"foo", "bar"}, -- these globals can be set and accessed.
   read_globals = {"baz", "quux"} -- these globals can only be accessed.

It later mentions the new_ variables:

In config, globals, new_globals, read_globals, and new_read_globals can also contain definitions in same format:

But doesn't explain what they do.

I would guess these are their purpose:

  • globals -- these globals can be set and accessed.
  • read_globals -- these globals can only be accessed.
  • new_globals -- these globals can be set but not accessed.
  • new_read_globals -- these globals can be set and accessed.

However, that means globals and new_read_globals are the same. Possibly, "new_" means to append to another list -- use these globals in addition to std?

Also, Config options says:

Option Type Default value
new_globals Array of strings or field definition map (Do not overwrite)
new_read_globals Array of strings or field definition map (Do not overwrite)


Which maybe means I shouldn't set the new_ variables? Why are they there?

@ur4ltz
Copy link

ur4ltz commented Nov 24, 2021

#198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants