Vision for the D language - stabilizing complexity?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jul 12 03:25:25 PDT 2016
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.
More information about the Digitalmars-d
mailing list