[DGD] 1.3.8

bart at wotf.org bart at wotf.org
Wed Oct 7 14:41:27 CEST 2009


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/




More information about the DGD mailing list