[Gambas-user] ByRef

Emil Tchekov emil at ...1913...
Tue Sep 2 11:50:56 CEST 2008


Hello Stevie,

If this is similar to the ByRef from VB, there is following to be said:

In Subroutine or Function that expects parameters passed from other part of
your program there are two possibilities to pass them

By Value (ByVal) or by Reference (ByRef).

First one means that your Sub gets only the Value and does NOT change the
variable that was passed in.

Passing by Reference is almoust the same as the pointer concept from C
language, INTERN the address of the var is passed so the Value CAN be
changed inside the Subroutine.

Hereby you must be carefull, sometime passing ByRef can spare time and
ressources, but it can also be (used without deeper mean) a source of hardly
to track bugs...


kind regards

Emil

-----Ursprungliche Nachricht-----
Von: gambas-user-bounces at lists.sourceforge.net
[mailto:gambas-user-bounces at lists.sourceforge.net]Im Auftrag von
gambas at ...1938...
Gesendet: Dienstag, 2. September 2008 11:28
An: mailing list for gambas users
Betreff: [Gambas-user] ByRef


Hello List!

I've switched to development version 3.0 and I'm trying to get rid of this
ByRef thing. I wonder, if someone could explane the syntax to me!

Thanks in advance!!

Greetz
Stevie



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list