auto result = foo(), bar();
Doesn't look like it works.

---
int f(int a){ return a; }
int main()
{
    int a=f(0),f(1); //doesn't compile
    return 0;
}
---
int f(int a){ return a; }
int main()
{
    int a;
    a=f(0),f(1);
    assert(a==1); //fails
    return 0;
}
---
https://run.dlang.io/is/IgArs0

Reply via email to