GLBasic forum

Feature request => IDE/Syntax => Topic started by: Schnatterplatsch on 2010-Jan-29

Title: CALLBYNAME for functions (and variables?)
Post by: Schnatterplatsch on 2010-Jan-29
Would something like....

QuoteCALLBYNAME("Say("Hello World" ,100,100)")

FUNCTION Say: in$,x,y

    PRINT in$,x,y

ENDFUNCTION

....be possible? This would be great to communicate with the programm via script, or so.

Also very useable for me would be a possibility to give a value to a variable via CALLBYWHATKNOWI("number = 5").

cheers
Title: Re: CALLBYNAME for functions (and variables?)
Post by: Kitty Hello on 2010-Feb-01
There's PROTOTYPE for that.
What you want (call from a string) is not possible, because it's a compiled language, not an interpreted one.