2015-01-10 23:22:18

So I was wondering how one would go about declaring an array of handles to functions in BGT? Is such an action possible? It would be nice if it was, I sort of need such an array at the moment. smile

Go to Heaven for the climate, Hell for the company. - Mark Twain

2015-01-11 00:22:43

Does this work?

funcdef void my_function_type();

my_function_type@[] functions(10);
看過來!
"If you want utopia but reality gives you Lovecraft, you don't give up, you carve your utopia out of the corpses of dead gods."
MaxAngor wrote:
    George... Don't do that.

2015-01-11 01:42:41 (edited by gamedude 2015-01-11 01:43:31)

yes. smile That did seem to work. The only problem now is that I am now running into another problem. I have a class with a function called, "push". When I attempt to call the push function from within another class such as below:
brain.push(find_leaves);
I get an error when trying to run the program. The push function takes only one parameter:
bool push(my_function_type@ func) {

I'm sure there's some obvious reason why this is not working, but I can't seem to figure it out. I've tried many different variants of the two lines above with no success.

Go to Heaven for the climate, Hell for the company. - Mark Twain