D's auto keyword
Nick Sabalausky
a at a.a
Wed Jan 13 13:22:55 PST 2010
"Lutger" <lutger.blijdestijn at gmail.com> wrote in message
news:hil6gr$2hmn$1 at digitalmars.com...
>
> All ML derived languages do this much more extensively and they even don't
> need an auto keyword for it. C# has var and VB.NET has Dim which mean the
> same thing. The nice thing with those languages is that if you code in
> Visual Studio, you only have to hover above the variabele and the type
> pops up. Most IDE's have this btw, including descent, so that takes away
> the concern of having to remember the flow of types inferred.
Doesn't "Dim" (without an "As" clause) declare a variant rather than a
compile-time-inferred static type? Or did that change in VB.NET?
More information about the Digitalmars-d
mailing list