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

Add support for named arguments #634

Closed
wants to merge 1 commit into from
Closed

Add support for named arguments #634

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 12, 2017

when macro function is invoked from command line or by .x macro.C metacommand
i.e. root 'macro.C(#arg3 = 13, arg1 = {42, 43}, arg5 = "string"#)' (compiled macros are also supported) or from ROOT REPL: .x macro.C(#arg3 = 13, arg1 = {42, 43}, arg5 = "string"#).
N.B.! No space between parentheses and #.
Calling from REPL as macro(#arg3 = 13, arg1 = {42, 43}, arg5 = "string"#) is not supported (yet?).

Passing arguments as options (root macro.C+ --# arg3=13 'arg1={42, 43}' 'arg5="string"'), like in #616 will be implemented if this PR merged is implemented.

Some implementation decisions, e.g. error reporting, are suboptimal so discussion, suggestions, criticism are welcome.

@phsft-bot
Copy link
Collaborator

Can one of the admins verify this patch?

when macro function is invoked from command line or by `.x macro.C` metacommand
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants