Three Unlikely Successful Features of D

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Mar 20 20:00:59 PDT 2012


On 3/20/12 9:47 PM, Walter Bright wrote:
> auto foo()
> {
> struct S { ... }
> S s;
> return s;
> }
>
> auto x = foo();
>
> And now x is an instance of a voldemort type! It's completely encapsulated.

LOL. Heck, I'd include "Voldemort types" just because it sounds so cool.

Andrei


More information about the Digitalmars-d mailing list