Struct initialization syntax

Azi Hassan azi.hassan at live.fr
Wed Jan 17 17:31:03 UTC 2018


The D tour for structs uses a syntax similar to that of C++ in 
order to initialize a Person struct : Person p(30, 180). Is this 
syntax supported in D ? Running that part of the code neither 
works on the playground nor on my machine (dmd v2.076.0).


More information about the Digitalmars-d-learn mailing list