why std.stdio.File is a struct?

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 20 05:24:14 PDT 2016


On Thursday, 20 October 2016 at 07:40:05 UTC, Jonathan M Davis 
wrote:
> In general, in D, if you don't need inheritance and 
> polymorphism, you probably shouldn't be using a class.

and even if you need, most of the time it is better to write 
templated free functions with constraints instead. ;-)


More information about the Digitalmars-d mailing list