Multiple return value as requirements for safety and performance

Brad Anderson via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 20 10:51:05 PST 2016


On Tuesday, 20 December 2016 at 15:47:38 UTC, Nordlöw wrote:
> On Tuesday, 20 December 2016 at 15:40:57 UTC, Nordlöw wrote:
>> DIP-32 has been dormant since 2013. I've been waiting for 
>> builtin tuples ever since I started using D.
>
> I wonder if it might be possible to add the tuple syntax 
> incrementally into DMD? It's always easier to approve something 
> less complex.
>
> Could the comma expression be contextually removed? 
> Specifically in return expressions as discussed initially in 
> this post?

Back in May a change was introduced to issue a deprecation 
message for uses of the comma operator outside of a for 
statement. Not sure which dmd version it got introduced into but 
it's surely in there by now.

https://github.com/dlang/dmd/pull/5737


More information about the Digitalmars-d mailing list