I'm so sorry, I know that the above example doesn't work:
main(){
Struct PersonDTO {
string name;
string surname;
}
void create(PersonDTO personData){
// ...
}
create( {name: "Peter", surname: "Ustinov"} );
}
-Is it there any alternative to initialize "inline" de struct (using the name:value syntax for the properties) without declaring an intermediate variable?
Thanks
Antonio