Thoughts on versioning
Adam D Ruppe
destructionator at gmail.com
Thu Oct 28 14:18:38 UTC 2021
On Thursday, 28 October 2021 at 14:12:44 UTC, Steven
Schveighoffer wrote:
> is, if you pass a `std.stdio.File` to a function accepting a
> `std2.stdio.File`, the compiler is given a way to convert the
> internals/state.
Well, if there was implicit construction, you could always make a
constructor for the one File that accepts the other and converts.
Of course, the user could also just call a transition function
you define.
If you're willing to do a little work you can make it happen.
More information about the Digitalmars-d
mailing list