GLBasic forum

Feature request => IDE/Syntax => Topic started by: Hatonastick on 2009-Mar-08

Title: CALLBYNAME() expanded to include functions.
Post by: Hatonastick on 2009-Mar-08
Not knowing the internals of GLB I realise this might be too much work, in which case forget it.  Would just make writing parsers of any sort much easier.  Currently I have to kludge my way through it as I have data that I have to pass to the function ie. CALLBYNAME() to a sub routine requires a global variable to store the data in for each sub routine to access.

eg. I'd like to be able to do this:
CALLBYNAME("MyFunction", data$, ID#)

Instead of this:
global data$, ID#
CALLBYNAME("MySub")

Anyway, if it's too much work due to the way GLB is structured internally, don't worry about this one mate. :)
Title: Re: CALLBYNAME() expanded to include functions.
Post by: Kitty Hello on 2009-Mar-09
How would the compiler know what parameters you pass. It's impossible.