I did... Earlier in that thread :)
On May 30, 2013 7:50 PM, "Dan Olson" <zans.is.for.c...@yahoo.com> wrote:

> "Diggory" <digg...@googlemail.com> writes:
> >
> > There's another alternative that fits more with D style which is also
> > very mathsy.
> >
> > It would be possible to make storage classes work with the colon
> > syntax, ie:
> >
> > auto:
> >    x = 1;
> >    y = 2;
> >    f = a => a+1
> >    writeln(f(x) + y);
> >
> > Also:
> >
> > immutable:
> >    x = 3;
> >    y = 4;
> >
> > Kind of like option explicit: off in VB
>
> Hmmm, why hasn't anybody just suggested doing this?  It seems to work
> fine in dmd.
>
>     auto
>         x = 23.5,
>         y = 14,
>         z = y*x,
>         s = "foo",
>         w = z * s.length;
>
> OR
>
>     immutable
>         x = 23.5,
>         y = 14,
>         z = y*x,
>         s = "foo",
>         w = z * s.length;
>

Reply via email to