[Gambas-user] Arguments passed by reference

Benoit Minisini gambas at ...1...
Sat Jan 19 18:55:58 CET 2008


Hi,

I have finally implemented the ability to pass arguments by reference 
in 'trunk'.

To do that, just add a '@' character before the argument. For example:

SplitName(FullName, @FirstName, @LastName)

Now here are the caveats:

* This is experimental.

* You can only use this syntax when calling Gambas code, not native code.

* This is slower than passing arguments by value.

I did that mainly to help porting VB projects to Gambas.

Enjoy it!

Regards,

-- 
Benoit Minisini




More information about the User mailing list