On 8/28/11 10:52 PM, Andrei Alexandrescu wrote:
It is quite easy to define C++-like cast operators as D functions. If
there's enough demand for that, we may include such in the standard
library.

I hope this finally goes through, there still seem to be some – hurricane-related, probably – stability issues with the server. Anyway, a library solution is definitely what I am thinking about, especially since it's just a matter of a template with a fitting constraint. But as said in my other post (that also took quite a few attempts to post), I think such casting templates would make most sense if standardized, i.e. included with Phobos.

David

Reply via email to