Inferred Type for Explicit Cast

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 23 19:11:40 PST 2014


On 12/20/14 6:47 PM, Steven Schveighoffer wrote:
> On 12/20/14 5:20 AM, Dicebot wrote:
>
>> I'd like to have a cast where you must define both "from" and "to" types
>> precisely.
>
> I was actually thinking the same thing. This would be almost
> future-proof (any changes to either side would result in failed
> compilation).
>
> -Steve

Specifying two types instead of one in a "to" call should achieve that. 
-- Andrei


More information about the Digitalmars-d mailing list