auto ref

Pelle Månsson pelle.mansson at gmail.com
Wed Dec 16 22:57:50 PST 2009


On 12/17/2009 01:05 AM, Michel Fortin wrote:
> Object? func(Object? o) {
> writeln(o.toString());
> return o;
> }
>
> MyObject o = func(new MyObject);
>
> Here, "Object?" means Object or a derived type.
>
You know, just Object means Object or a derived type. That's what 
inheritance is.



More information about the Digitalmars-d mailing list