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

init file for Cling, to put e.g. gClingOpts->AllowRedefinition = 1 #535

Open
Apteryks opened this issue Sep 22, 2024 · 0 comments
Open

init file for Cling, to put e.g. gClingOpts->AllowRedefinition = 1 #535

Apteryks opened this issue Sep 22, 2024 · 0 comments

Comments

@Apteryks
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I want gClingOpts->AllowRedefinition = 1; to be the default behavior. Often I forget to turn it on for my REPL session, and then when I do it's too late (can't redefine things defined prior to switching that option it seems).

Describe the solution you'd like

I'd like something like a ~/.config/cling.conf or similar, where I can put these configurations to be evaluated automatically when Cling runs.

Alternative solution considered

Perhaps AllowRedefinition's default value simply should be 1? I can't think of a useful use case to have it prevent someone from redefining a variable in such a dynamic environment as a REPL.

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

1 participant