Glossary entry

English term or phrase:

‘set’ or ‘referenced’

Russian translation:

\"присваивать значение\" и \"ссылаться на переменную\"

Added to glossary by Yuriy Vassilenko
Nov 21, 2007 18:05
16 yrs ago
1 viewer *
English term

‘set’ or ‘referenced’

English to Russian Tech/Engineering Computers: Software unix shell - описание языка
A variable is a symbol that represents a set of values. In the shell language, all variables
are represented by strings. Variable values can be ‘set’ or ‘referenced’; for example: ...

Proposed translations

+3
21 mins
Selected

"присваивать значение" и "ссылаться на переменную"

Суть такая: 'set' - это когда переменной присваивается значение, например,
A:= 2;
А 'reference' - это когда значение, присвоенное переменной, используется в выражениях, в которых фигурируют не сами эти значения, а имя переменной:
B:= A + 3;

Кстати, Юрий, зря Вы примеры не привели, которые (судя по всему) приведены ниже в тексте

--------------------------------------------------
Note added at 24 мин (2007-11-21 18:29:49 GMT)
--------------------------------------------------

Упс... Прошу прощения - пока набирал свой ответ, LaBoule уже дал похожий...

--------------------------------------------------
Note added at 38 мин (2007-11-21 18:43:56 GMT)
--------------------------------------------------

Из примеров видно, что в языках программирования оболочки (скорее всего, речь идет о чем-то типа csh, tcsh из ОС UNIX) есть своя специфика - там переменные строкового типа, но суть от этого не меняется

--------------------------------------------------
Note added at 42 мин (2007-11-21 18:48:04 GMT)
--------------------------------------------------

KPATEP, а где продаются батоны по такой цене? Хочу!!! :)
Peer comment(s):

agree Anton Konashenok
1 min
Пасиб, Антон! :)
agree KPATEP (X) : какие примеры? все просто, как батон сорта "простой" за 13 копеек из детства!
3 mins
Спасибо!
agree Enote
7 mins
Спасибо!!!
Something went wrong...
4 KudoZ points awarded for this answer. Comment: "Спасибо!"
18 mins

Значения переменных могут задаваться или к ним можно обращаться...

Пока такой вариант. А что идет дальше за "for example: "?
Note from asker:
A variable is a symbol that represents a set of values. In the shell language, all variables are represented by strings. Variable values can be ‘set’ or ‘referenced’; for example: • Set its value This is an operation were the character string is assigned to the variable. For example: count=1 status=OPEN • Reference its value This causes the shell to replace the reference with the actual character string that is the current value of the variable; for example: count=1 let count=$count+1 status=OPEN status=${status}ED The initial values of ‘count’ and ‘status’ were set to ‘1’ and ‘OPEN’ respectively. The new values will be ‘2’ and ‘OPENED’. In the above example count is actually assigned the character value ‘1’ and not the integer value 1. Integer calculations can be performed on the character strings using the shell command ‘let’. This will take as input a character string representing an integer or calculation and assign the result as a character string to the variable on the left hand side of the assignment operator. A variable can be repeatedly set to different strings, which change the variable's value each time. However, a variable can have only one data value at a time.
неудачно...
Something went wrong...
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search