GLBasic forum

Main forum => Bug Reports => Topic started by: Moru on 2008-Jul-28

Title: Functions with default value as parameter
Post by: Moru on 2008-Jul-28
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


Title: Re: Functions with default value as parameter
Post by: Kitty Hello on 2008-Jul-28
It's a bug in the compiler. Next update, OK?