Cobra/Keywords/out: различия между версиями

Содержимое удалено Содержимое добавлено
м Замена <tt /> на <code />; избыточные <big /> и <font /> вокруг <source />; {{BookCat}}; пробелы.
м <source> -> <syntaxhighlight> (phab:T237267)
 
Строка 5:
== Синтаксис ==
В реалицации метода:
<sourcesyntaxhighlight lang="python">
as out <Type>
</syntaxhighlight>
</source>
При вызове метода
<sourcesyntaxhighlight lang="python">
out <paramList>
</syntaxhighlight>
</source>
== Пример ==
<sourcesyntaxhighlight lang="python">
def add(x, y as int, ans as out int)
ans = x + y
Строка 22:
.add(x, y, out ans)
print '[x] + [y] = [ans]'
</syntaxhighlight>
</source>
 
{{BookCat}}