Type inference and overloaded functions

Dicebot public at dicebot.lv
Tue Dec 10 06:21:06 PST 2013


On Tuesday, 10 December 2013 at 07:29:03 UTC, Kenji Hara wrote:
> This is an intended behavior. An array literal has dynamic 
> array type *by default*.
> But all of literals in D behave as polymorphic.

One of good examples why weakly typed literals suck.


More information about the Digitalmars-d-learn mailing list