2 ms·
y is a pointer to a pointer to a pointer to a pointer to a pointer to an instance of Foo. What the author wanted to show was that there is automatic dereferenc
by alkonaut 13y ago
y is a pointer to a pointer to a pointer to a pointer to a pointer to an instance of Foo.
What the author wanted to show was that there is automatic dereference:
z = y.foo()
Will just reference through all five pointers and call the method on the object directly.