UFCS and "with" statement

Rob T alanb at ucora.com
Tue Jun 11 23:44:47 PDT 2013


struct S
{
}

void f(S)
{
}

void main()
{
   S s;
   with (s)
   {
      f(); // compiler error
   }
}

Rather disappointing that this fails. Anyone know if this is an 
expected limitation of UFCS or a bug?

--rt


More information about the Digitalmars-d-learn mailing list