BASIC

Author Topic: CALLBYNAME() expanded to include functions.  (Read 2353 times)

Hatonastick

  • Guest
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. :)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10675
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: CALLBYNAME() expanded to include functions.
« Reply #1 on: 2009-Mar-09 »
How would the compiler know what parameters you pass. It's impossible.