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

Improve phrasing of constants in GDScript basics #4036

Merged
merged 2 commits into from
Sep 18, 2020

Conversation

NathanLovato
Copy link
Contributor

Based on a user's request on the Discord server's documentation channel.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if the new formulation is actually an upgrade, as it no longer mentions the requirement that constants should have a value known at compile-time. (By definition, excludes things such as random values or OS-specific values.)

My suggestion might not be the best way to phrase it, but we need to change something before this can be merged.

getting_started/scripting/gdscript/gdscript_basics.rst Outdated Show resolved Hide resolved
getting_started/scripting/gdscript/gdscript_basics.rst Outdated Show resolved Hide resolved
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
@NathanLovato
Copy link
Contributor Author

Thanks, I added your suggestions to the PR

@Calinou
Copy link
Member

Calinou commented Sep 18, 2020

Thanks 🙂

That said, #3623 is also overhauling that page. const can now be used at a local scope in master, but this isn't possible in 3.2.x.

@NathanLovato
Copy link
Contributor Author

I just checked the changes in #3623 and they don't conflict with these ones. Vnen didn't edit the first paragraph below the Constants heading.

@Calinou Calinou changed the title Improve phrasing of constants in gdscript basics Improve phrasing of constants in GDScript basics Sep 18, 2020
@Calinou Calinou merged commit 3f0a283 into godotengine:master Sep 18, 2020
@NathanLovato NathanLovato deleted the fix/gdscript-constants branch September 18, 2020 21:39
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