Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
0f977561
Commit
0f977561
authored
2 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Take into account suggestions of Alexiane
parent
50586504
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!147
Take into account suggestions of Emmanuel
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/userdoc.org
+2
-2
2 additions, 2 deletions
doc/userdoc.org
with
2 additions
and
2 deletions
doc/userdoc.org
+
2
−
2
View file @
0f977561
...
@@ -433,7 +433,7 @@ change of type in its lifetime.
...
@@ -433,7 +433,7 @@ change of type in its lifetime.
**** Declaration of simple variables
**** Declaration of simple variables
To declare a variable ~v~ of a given type ~V~, one writes
To declare a variable ~v~ of a given type ~V~, one
simply
writes
#+BEGIN_SRC pugs :exports source
#+BEGIN_SRC pugs :exports source
let v:V;
let v:V;
#+END_SRC
#+END_SRC
...
@@ -475,7 +475,7 @@ already been /declared/, one writes simply
...
@@ -475,7 +475,7 @@ already been /declared/, one writes simply
#+BEGIN_SRC pugs :exports source
#+BEGIN_SRC pugs :exports source
v = expression;
v = expression;
#+END_SRC
#+END_SRC
There is not to much to comment, reading is quite natural
There is not to
o
much to comment, reading is quite natural
- ~v~ is the variable name,
- ~v~ is the variable name,
- ~=~ is the affectation operator,
- ~=~ is the affectation operator,
- ~expression~ is some code that provides a value of the same type as ~v~
- ~expression~ is some code that provides a value of the same type as ~v~
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment