The writeln() function's args can't be ["一" ,"二"]?

JR via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue May 6 02:54:07 PDT 2014


On Tuesday, 6 May 2014 at 09:43:10 UTC, FrankLike wrote:
> Hi,everyone,
>
> I find the The writeln()  function's args  can't be ["一" ,"二"]?
> why?
>
> Thank you.
>
> Frank.

The problem is that you have a wide-character comma (,) there.

This works:

     void main() {
         writeln(["一", "二"]);
     }


More information about the Digitalmars-d-learn mailing list