digitalmars.D - Duration.toTimeVal ? (following deprecation from 2.066)
- Timothee Cour via Digitalmars-d (11/11) Aug 10 2014 This used to work prior to 2.066 (rc):
This used to work prior to 2.066 (rc): Duration t; auto tv=timeval(t.total!"seconds",t.fracSec.usecs); now it works but with: Deprecation: function core.time.Duration.fracSec is deprecated - Please use split instead. I see there's a SysTime.toTimeVal but there's no Duration.toTimeVal. Shouldn't there be? What would be the new recommended implementation? Also, I think deprecation messages could be more precise, telling exactly how to make the change instead of telling you the function name.
Aug 10 2014