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

Jussi Lahtinen jussi.lahtinen at ...626...
Sun Sep 11 17:07:16 CEST 2011


Problem is that my functions are like; ConnectThese(iWithTerm, ByRef
iVariable1, Byref iVariable2).

Jussi


2011/9/11 Fabián Flores Vadell <fabianfloresvadell at ...626...>

> 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)
>
> ------------------------------------------------------------------------------
> Using storage to extend the benefits of virtualization and iSCSI
> Virtualization increases hardware utilization and delivers a new level of
> agility. Learn what those decisions are and how to modernize your storage
> and backup environments for virtualization.
> http://www.accelacomm.com/jaw/sfnl/114/51434361/
> _______________________________________________
> 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