Functions with default value as parameter

Previous topic - Next topic

Moru

I'm getting a warning that c will be declared global with this code:
Is it supposed to do that?

Code (glbasic) Select
// --------------------------------- //
// Project: Test8
// Start: Monday, July 28, 2008
// IDE Version: 5.337


LOCAL x

x = test(5, 3)

DEBUG "x = " + x + "\n"

END



// ------------------------------------------------------------- //
// ---  TEST  ---
// ------------------------------------------------------------- //
FUNCTION test: a, b, c = 5

RETURN a * b * c

ENDFUNCTION // TEST



Kitty Hello

It's a bug in the compiler. Next update, OK?