Pointers and Passing by reference

edited 1:03PM in FastScript
If it is possible, how do I pass a pointer to a user defined function? I tried

fsScript1->AddMethod("function FUNC(v: PInteger):Boolean",ScriptFunction,NULL,NULL);
Then from script I tri this:

{
int x;
func(&x);
}

{
int *x;
func(x);
}

{
int x;
func(@x);
}

It doesn't like any of them.



Also tried this:
fsScript1->AddMethod("function FUNC(v:^Integer):Boolean",ScriptFunction,NULL,NULL);

but this freezes the app when it gets to this line.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.