-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Updates for Export/Import doc #4417
Conversation
Mention mutable objects - if an sconscript imports a previously exported variable, it is the same object, so changes propagete. Some wording tweaks in SConscript function. Signed-off-by: Mats Wichmann <[email protected]>
SCons/Script/SConscript.xml
Outdated
imported by other SConscript files. | ||
Exports variables for sharing with other SConscript files. | ||
The variables are added to a global collection where | ||
they can be imported by another SConscript file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think other file(s) is more accurate here?
SCons/Script/SConscript.xml
Outdated
@@ -372,7 +400,7 @@ Return('val1 val2') | |||
|
|||
<scons_function name="SConscript"> | |||
<arguments> | |||
(scripts, [exports, variant_dir, duplicate, must_exist]) | |||
(scriptname, [exports, variant_dir, duplicate, must_exist]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scriptnames? It can be plural right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the actual arg is *ls
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was trying to match up with wording. as noted elsewhere, unnamed args aren't really helpful in doc generation etc. but we have a good number spread around. SConscript is a weird function, can take 0, 1 or 2 positional args. the 0 part being a bit odd...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and yes, pluralizing it is ok, if you prefer that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think pluralizing would be better. though I think rarely used, it is accurate.
Signed-off-by: Mats Wichmann <[email protected]>
Mention mutable objects - if an Sconscript imports a previously exported variable, it is the same object, so changes propagate. Some wording tweaks in SConscript function.
Doc-only change.
Contributor Checklist:
CHANGES.txt
(and read theREADME.rst
)