[DGD] 1.3.8

Petter Nyström jimorie at gmail.com
Wed Oct 7 15:26:21 CEST 2009


Yes, very welcome!

Here is one user that wouldn't mind less conservatism and more sugar.
But it's all good.

Thanks,

Petter

On Wed, Oct 7, 2009 at 2:41 PM,  <bart at wotf.org> wrote:
> On Tue, 06 Oct 2009 16:06:13 -0500, Par Winzell wrote
>> This is such a wonderful language extension.
>
> Absolutely!
>
> I actually run into the situation for which this is useful a lot, thanks for
> this nice change.
>
> Update to the network package will follow soonish, but I'm very busy and need
> a few moments to look at this change.
>
> Bart.
>
>>
>> Felix A. Croes wrote:
>> >> +  - Allow ({ a, b }) = array; to facilitate returning multiple values from a
>> >> +    function.
>> >
>> > This makes possible the following:
>> >
>> >     int time;
>> >     float millisec;
>> >
>> >     ({ time, millisec }) = millitime();
>> >
>> > Any kind of array can be used for assignment, not just a function return
>> > value.  So the following will also work:
>> >
>> >     int a, b, c;
>> >
>> >     ({ a, b, c }) = ({ 1, 2, 3 });
>> >
>> > though this would be somewhat less efficient than performing distinct
>> > assignments.
>> >
>> > Regards,
>> > Felix Croes
>> > ___________________________________________
>> > https://mail.dworkin.nl/mailman/listinfo/dgd
>>
>> ___________________________________________
>> https://mail.dworkin.nl/mailman/listinfo/dgd
>
>
> --
> Created with Open WebMail at http://www.bartsplace.net/
> Read my weblog at http://soapbox.bartsplace.net/
>
> ___________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
>



More information about the DGD mailing list