|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide 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 electronics |
digitalmars.D - i18n and string in another locales [charsets],,??
why d compiler refuse to swallow strings [char[] or string] in another
languages??
c/c++ java/c# etc... comiplers/interpreters can swallow strings in any
charset
without complain
---------------------------------------------------------------------------------------------------
and i want to know why i can't do these things too:
1]Suppose we have a String Class with Constructors
String(char)/String(char[])/String(String) So why I can't do this
String mystr="Hello,World"; // Or
String mystr='c';
there is no implicit constructor conversion in d like c++/java/c#
2] construct like this char[4] str=new char[4] {'A','B','C','D'};
3] I know that java importing with * [import xx.yy.*;] is slow but with *
importing it is not necessary to write every time about 5 to 10 lines of
import
statements
4]why the compiler depends on the phobos by this intimate relationship
d compiler must be generic like c++
----------------------------------
i know i am BORING but
Thanks
May 05 2008
d-user wrote:why d compiler refuse to swallow strings [char[] or string] in another languages?? c/c++ java/c# etc... comiplers/interpreters can swallow strings in any charset without complain May 05 2008
2008/5/6 <d-user puremagic.com>:why d compiler refuse to swallow strings [char[] or string] in another languages?? c/c++ java/c# etc... comiplers/interpreters can swallow strings in any charset without complain May 05 2008
|