Strings in DWT

Frank Benoit keinfarbton at googlemail.com
Wed Feb 20 10:54:14 PST 2008


Strings in Java and D are different.
- null vs zero length is in Java completely different
- Java works in utf16, char[] is utf8

In Phobos there is an alias char[] to "string". Would that make sense to 
be used in DWT?

With the helper functions in dwt.dwthelper.utils, the char[] can be used 
like the Java String in many cases. An alias to String would remove many 
replacements. And this would make merging/diffing easier.

1.) "char[]"
2.) alias char[] string;
3.) alias char[] String;

What do you think? What should be used in DWT?


More information about the Digitalmars-d-dwt mailing list