[Gambas-user] Another syntax sweetness question and request
T Lee Davidson
t.lee.davidson at gmail.com
Thu Mar 7 01:30:26 CET 2019
I would think a Structure could be used for that as well. But the Wiki says, "DON'T USE STRUCTURES, UNLESS YOU HAVE TO!"
___
Lee
On 3/6/19 6:47 PM, Tony Morehen wrote:
> An alternative to returning multiple values is to return a Gambas native class such as point, rect, rectf etc
>
> It may be worthwhile to add some other native classes to Gambas, such as:
>
> tuple (variant, variant)
>
> ntuple (integer,variant)
>
> ftuple (float, variant)
>
> stuple (string, variant)
>
> On 2019-03-06 2:57 p.m., Cedron Dawg wrote:
>> Question:
>>
>> Which is preferred: "Function .. As .." -OR- "Sub .. As .." ?
>>
>> Anybody have a strong opinion?
>>
>> I lean towards, and am using, the latter. A step away from BASIC perhaps, but one fewer thing a newbie has to learn. More
>> elegant.
>>
>>
>> Request:
>>
>> Would it be possible to make subs return multiple values like Python can?
>>
>> That can be really handy.
>>
>>
>> Thanks.
>>
>>
>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
More information about the User
mailing list