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

Updates for Export/Import doc #4417

Merged
merged 4 commits into from
Sep 22, 2023
Merged

Updates for Export/Import doc #4417

merged 4 commits into from
Sep 22, 2023

Conversation

mwichmann
Copy link
Collaborator

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:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated CHANGES.txt (and read the README.rst)
  • I have updated the appropriate documentation

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]>
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.
Copy link
Contributor

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?

@@ -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])
Copy link
Contributor

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?

Copy link
Contributor

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 ?

Copy link
Collaborator Author

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...

Copy link
Collaborator Author

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.

Copy link
Contributor

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.

@bdbaddog bdbaddog merged commit a932578 into SCons:master Sep 22, 2023
4 of 5 checks passed
@mwichmann mwichmann added this to the 4.6 milestone Sep 22, 2023
@mwichmann mwichmann deleted the doc/exports branch September 22, 2023 21:53
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