[Gambas-user] Function Parameter Out ?

KKing kicking177 at gmail.com
Sat Aug 4 10:41:09 CEST 2018


<<
To achieve it you should use the ByRef parameter access modifier
 >>
many thanks

<<
"good programming practice"
 >>
My opinion that is used way too much for just opinions and sometimes 
egotistical ones.

In this case creating a bespoke class to encapsulate various contents to 
pass in and have the function return it back that class that then needs 
to be interrogated is just another way to achieve the same result.

My definition is if the coding is simple, straight forward and makes it 
clear what is happening by code and comments. The latter especially if 
less clear choices are made for performance or security reasons.

K.



More information about the User mailing list