[Gambas-user] To wish list; optional compiler warning

Fabián Flores Vadell fabianfloresvadell at ...626...
Sun Sep 11 15:05:15 CEST 2011


2011/9/10 Jussi Lahtinen <jussi.lahtinen at ...626...>

>
> What is the alternative then? Pass variables as pointers?
> Making almost needless class for couple variables doesn't seem good
> option...
>
> Jussi
>

Pass variables as pointer, will work (I think). But, ¿is necessary?

Could you just use functions to return values?


Private Sub Test(x As Integer) As Integer

    . . .

    Return x

End


iMyVal = Test(iMyVal)



More information about the User mailing list