On Thursday, 9 March 2017 at 23:50:04 UTC, XavierAP wrote:
The same way as T.foo() is lowered to foo(T) if no such member is defined inside the type.
No.But wrapping in a struct with alias this lets you extend them pretty easily too.
Adam D. Ruppe via Digitalmars-d-learn Thu, 09 Mar 2017 16:02:30 -0800
On Thursday, 9 March 2017 at 23:50:04 UTC, XavierAP wrote:
The same way as T.foo() is lowered to foo(T) if no such member is defined inside the type.
No.But wrapping in a struct with alias this lets you extend them pretty easily too.