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

Support range-based iteration directly on an Args object #9

Open
xparq opened this issue Jan 26, 2023 · 0 comments
Open

Support range-based iteration directly on an Args object #9

xparq opened this issue Jan 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@xparq
Copy link
Owner

xparq commented Jan 26, 2023

for (a : args)  { cout << a << endl; }

But what exactly to include here, and how to uniformly represent each (included) item (token?), despite their various semantic possible roles on the cmdline??

One straightforward option is to only include the positional parameters (simply forwarding to unnamed()).

@xparq xparq added the enhancement New feature or request label Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant