Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - Русский - 日本語
Scilab Help >> Lint tool (SLint) > Checker for redefinition

Checker for redefinition

Description

Check if a variable redefines a Scilab's constant, built-in or macro.

Redefine a Scilab's variable could have undesirable side-effects, so it should be avoided.

Examples

function y=foo(x)
    y = x
endfunction

function y=bar(x)
    y = foo(x)
endfunction

function y=oof(x) // call oof(2) doesn't return 2 !
    foo = rand(x, 1);
    y = bar(x)
endfunction

See Also

  • slint — Call the lint tool
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:27:55 CEST 2016