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 variables use

Checker for variables use

Description

Check if a declared or uninitialized variable is used.

Initialized and unused variables are useless and can decrease the readability.

When an uninitialized variable is used its value is taken in the previous scope if defined so it could have side-effects.

Examples

function y=foo(x)
    scilab = 123;
    y = bar(x);
endfunction

function y=bar(x)
    Scilab = 456;
    y = scilab + 1; // typo error
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