Skip to content

Add support for named arguments#634

Closed
ghost wants to merge 1 commit intomasterfrom
unknown repository
Closed

Add support for named arguments#634
ghost wants to merge 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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
Copy Markdown

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