On Saturday, 14 April 2012 at 18:02:57 UTC, Andrej Mitrovic wrote:
On 4/14/12, F i L <witte2...@gmail.com> wrote:
     auto f = 1.0f; // is float not Float

UFCS in 2.059 to the rescue:

struct Float
{
    float payload = 0.0;
    alias payload this;
}

@property Float f(float val) { return Float(val); }

void main()
{
    auto f = 1.0.f;
}

You're a scholar and and gentlemen!

Reply via email to