F.1 Ключевые слова
Следующие идентификаторы являются ключевыми словами и не могут быть использованы в качестве имён переменных или функций:
__FILE__ |
__LINE__ |
break |
case |
catch |
classdef |
continue |
do |
else |
elseif |
end |
end_try_catch |
end_unwind_protect |
endclassdef |
endenumeration |
endevents |
endfor |
endfunction |
endif |
endmethods |
endparfor |
endproperties |
endswitch |
endwhile |
enumeration |
events |
for |
function |
global |
if |
methods |
otherwise |
parfor |
persistent |
properties |
return |
switch |
try |
until |
unwind_protect |
unwind_protect_cleanup |
while |
Функция iskeyword может быть использована для быстрого проверки, является ли идентификатор зарезервированным в Octave.
© 1996–2023 The Octave Project Developers
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://docs.octave.org/v8.1.0/Keywords.html