Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
Container registry
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
pikelang
pike
Commits
53368e50
Commit
53368e50
authored
28 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
doc on index operator fixed
Rev: doc/types/array:1.6
parent
29099f89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/types/array
+7
-2
7 additions, 2 deletions
doc/types/array
with
7 additions
and
2 deletions
doc/types/array
+
7
−
2
View file @
53368e50
...
@@ -11,8 +11,13 @@ DESCRIPTION
...
@@ -11,8 +11,13 @@ DESCRIPTION
allocated and does not need to be declared as in C. The values in
allocated and does not need to be declared as in C. The values in
the array can be set when creating the array as in the first
the array can be set when creating the array as in the first
construction or anytime afterwards like this: arr[index]=data where
construction or anytime afterwards like this: arr[index]=data where
index is an integer greater or equal to 0 and smaller than the array
index is an integer. Index is normally 0 <= index < sizeof(arr), and
size. Note that arrays are shared and use reference counts to keep
refers to the corresponding element in the array. If index is less
than zero, it is the same as doing arr[sizeof(arr)+index]. This
means that negative index will index the array from the end rather
than from the beginning.
Note that arrays are shared and use reference counts to keep
track of their references. This will have the effect that you can
track of their references. This will have the effect that you can
have two variables pointing to the same array, and when you change
have two variables pointing to the same array, and when you change
an index in in it, both variables will show the change.
an index in in it, both variables will show the change.
...
...
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