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

Feature request: reuse of a variable #51

Open
adrien-gthb opened this issue Jan 21, 2016 · 2 comments
Open

Feature request: reuse of a variable #51

adrien-gthb opened this issue Jan 21, 2016 · 2 comments
Assignees
Milestone

Comments

@adrien-gthb
Copy link

Hi, it would be nice if we could reuse a variable already defined in settings to set another.

Ex:

a = 1;
b = 1;
c = a + b;
@jltallon jltallon self-assigned this Jan 21, 2016
@jltallon jltallon added this to the libconfig2.0 milestone Jan 21, 2016
@jltallon
Copy link
Collaborator

This was already planned, with the syntax being: c = $a;
Sorry, no arithmetics on vars -- that doesn't make sense in a configuration file (that'd be for a programming language)

@adrien-gthb
Copy link
Author

Ok, that's fine. Thank you !

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

No branches or pull requests

2 participants