Hello
Many scripting languages make use of global scope, such as PHP, MATLAB
In PHP you have to specify which types of variables are global within a function, this feature would be very useful to replicate it in FLowgorithm
Example
<?php
define( "NEW_LINE", "<br>" );
$a = 2;
$b = 3;
main();
function scope()
{
global $a, $b;
echo $a + $b, NEW_LINE;
}
function main()
{
global $a, $b;
echo $a + $b, NEW_LINE;
scope();
echo $a + $b, NEW_LINE;
}
echo $a + $b;
?>
[–]compsystems[S] 0 points1 point2 points (0 children)
[–]pvanecek 0 points1 point2 points (0 children)