std.stdio and copying

2015-01-22 Thread Luc Bourhis via Digitalmars-d
If s is the instance of some struct S, write(s) will first copy s. Not only this can be very inefficient but it won't even compile if S features @disable this(this). The same goes for all the other functions, including format(s=%s, s) One is then force to manually insert s.toString(). Not

Re: std.stdio and copying

2015-01-22 Thread Kagamin via Digitalmars-d
Somewhat related: https://issues.dlang.org/show_bug.cgi?id=13586