On 7/12/2016 12:35 AM, Shachar Shemesh wrote:
UFCS: Anywhere you can do "func(a)" you can also do "a.func()" and vice
versa.

Operator ->: Not needed, as we know this is a pointer to a struct. We
automatically dereference with the dot operator.

struct A {
     void method() {}
}

void main() {
     A* a;

     a.method(); // Okay
     method(a);  // Not okay
}

I'm afraid I don't know what you're driving at with those examples.

Reply via email to