Damn C++ and damn D!
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Feb 5 08:13:06 PST 2012
On 2/5/12 9:57 AM, Jose Armando Garcia wrote:
> On Sun, Feb 5, 2012 at 1:44 PM, Timon Gehr<timon.gehr at gmx.ch> wrote:
>> immutable variable = (boolean_condition) ? {
>> // initialize based on boolean_condition being true
>> }():{
>> // initialize based on boolean_condition being false
>> }();
>>
>>
>
> Cool, now I want some syntactic sugar ;). I write this all the time!
Make it a function.
Andrei
More information about the Digitalmars-d
mailing list