Programming Basics: Variable Scope Tutorial in GdScript and C++

Опубликовано: 31 Июль 2026
на канале: Kyle Luce
236
7

In this video I go over what scope is in programming and what it is not. How you can manage scope with programming structure and even violate those expectations with "dynamic scope"!

Then I walk through real code in a debugger in both gdscript/Godot and C++ with Visual Studio Code.

Code In Video:


Perl Dynamic Scope:
https://gist.github.com/Razzlegames/3...

C++ Godot Example:
https://github.com/godotengine/godot/...

Debugging:

GDScript code: https://github.com/godotengine/godot/...

C++PR in Godot: https://github.com/godotengine/godot/...