Une nouvelle version du portail de gestion des comptes externes sera mise en production lundi 09 août. Elle permettra d'allonger la validité d'un compte externe jusqu'à 3 ans. Pour plus de détails sur cette version consulter : https://doc-si.inria.fr/x/FCeS

Commit f9a76c94 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

Reformulate the paragraph about ; at end of struct.

parent 61d261c1
......@@ -163,9 +163,7 @@
"metadata": {},
"source": [
"### The semicolon at the end of a `struct`\n",
"This comes historically from the C, where a `struct` is considered as a type declaration and it allows to do:\n",
"\n",
"**Xeus-cling issue:** Here cling doesn't manage to compile it but it is accepted rightfully by a full-fledged compiler (see for instance [@Coliru](http://coliru.stacked-crooked.com/a/3b77606ea8082485)):"
"This comes historically from the C, where a `struct` could be defined and initialized at the same time (or should - Xeus-cling doesn't manage it... As usual you may check a full-fledged compiler accepts it [@Coliru](http://coliru.stacked-crooked.com/a/3b77606ea8082485)):"
]
},
{
......@@ -174,6 +172,8 @@
"metadata": {},
"outputs": [],
"source": [
"// Xeus-cling issue (at least circa May 2021)\n",
"\n",
"struct Vector\n",
"{\n",
" double x;\n",
......@@ -190,7 +190,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This is the reason why a semicolon is always required at the end of a `struct` or a `class` declaration."
"This is absolutely **not** encouraged in C++, but it may help you to remember always closing a `struct` (or later a `class`) with a semicolon."
]
},
{
......
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