|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - typeless consts
Feature suggestion. It would be nice if D could determine
type of constant automatically, so we could write:
const i = 10, d = 123.456, s = "Hello, world!"
Would be great...
Dec 21 2001
"Pavel Minayev" <evilone omen.ru> wrote in message news:a003uc$1m0e$1 digitaldaemon.com... Dec 21 2001
"Walter" <walter digitalmars.com> wrote in message news:a00e4m$1thm$1 digitaldaemon.com...Actually, with string literals, the compiler does do that. But it has Dec 22 2001
"Pavel Minayev" <evilone omen.ru> wrote in message news:a01g86$2ma7$2 digitaldaemon.com..."Walter" <walter digitalmars.com> wrote in message news:a00e4m$1thm$1 digitaldaemon.com...Actually, with string literals, the compiler does do that. But it has Dec 22 2001
"Walter" <walter digitalmars.com> wrote in message news:a02ebb$ajb$1 digitaldaemon.com...Yes, it won't, because while "hello, world" starts out typeless, the declaration for s needs a type. Dec 22 2001
"Pavel Minayev" <evilone omen.ru> wrote in message news:a02ikb$dlr$1 digitaldaemon.com..."Walter" <walter digitalmars.com> wrote in message news:a02ebb$ajb$1 digitaldaemon.com...Yes, it won't, because while "hello, world" starts out typeless, the declaration for s needs a type. Dec 22 2001
Lazy, lazy, lazy!!! Sean "Pavel Minayev" <evilone omen.ru> wrote in message news:a003uc$1m0e$1 digitaldaemon.com... Dec 22 2001
|