Feature request: extending comma operator's functionality

David Nadlinger see at klickverbot.at
Thu Oct 4 15:22:31 PDT 2012


On Thursday, 4 October 2012 at 21:17:51 UTC, Tommi wrote:
> Could you change it so that expressions, that are separated by 
> commas and inside an if-clause, would have visibility to the 
> variable defined in the first expression?

Yes, a language designed could make that choice. But not, it 
certainly won't be considered for D unless it can be shown that 
the change solves a real problem with the current syntax. And how 
often have you really encountered big syntactic headaches because 
of not having something like this available?

David


More information about the Digitalmars-d mailing list