Jeremy DeHaan:

I figured that it would be smart enough to
deduce the parameter type based on the type that it was trying to be assigned to.

For that you need languages like Haskell/Rust. D type inference doesn't work from the type something is assigned to.

Bye,
bearophile

Reply via email to