Commit 67689ca1 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

Fixes following review by @steff.

parent afbf8fac
Pipeline #246993 passed with stage
in 11 minutes and 35 seconds
...@@ -30,15 +30,15 @@ ...@@ -30,15 +30,15 @@
"source": [ "source": [
"`static` may be seen as _at compile time_, whereas `dynamic` may be seen as _at runtime_.\n", "`static` may be seen as _at compile time_, whereas `dynamic` may be seen as _at runtime_.\n",
"\n", "\n",
"A reply to this [StackOverflow question](https://stackoverflow.com/questions/572547/what-does-static-mean-in-c) gives a rather good summary of what `static` means in C (we shall see [later](./2-ObjectProgramming/5-static.ipynb) a C++-only keyword that unfortunately share the same moniker):\n", "A reply to this [StackOverflow question](https://stackoverflow.com/questions/572547/what-does-static-mean-in-c) gives a rather good summary of what `static` means in C (we shall see [later](../2-ObjectProgramming/5-static.ipynb) a C++-only keyword that unfortunately share the same moniker):\n",
"\n", "\n",
"* Static defined local variables do not lose their value between function calls. In other words they are global variables, but scoped to the local function they are defined in.\n", "* Static defined local variables do not lose their value between function calls. In other words they are global variables, but scoped to the local function they are defined in.\n",
"* Static global variables are not visible outside of the C file they are defined in.\n", "* Static global variables are not visible outside of the C file they are defined in.\n",
"* Static functions are not visible outside of the C file they are defined in.\n", "* Static functions are not visible outside of the C file they are defined in.\n",
"\n", "\n",
"Only the first one is really relevant in C++, as for quantities that should be accessible only in the current file C++ provides a concept of his own: the [**unnamed namespace**](../6-InRealEnvironment/5-Namespace.ipynb#Unnamed-namespace).\n", "Only the first one is really relevant in C++, as for variables that should be accessible only in the current file C++ provides a concept of his own: the [**unnamed namespace**](../6-InRealEnvironment/5-Namespace.ipynb#Unnamed-namespace).\n",
"\n", "\n",
"Let's see the remaining case in action:\n", "Let's see this first case in action:\n",
"\n", "\n",
"\n" "\n"
] ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment