Invalid trainling code unit

Joshua Niehus jm.niehus at gmail.com
Fri Dec 14 22:22:43 PST 2012


On Saturday, 15 December 2012 at 06:07:10 UTC, rumbu wrote:
> I'm trying to understand how strings are working in D. I got 
> the following error when declaring a simple string variable: 
> "Invalid trailing code unit":
>
> wstring needle = `Être sans la verité`;
>
> Considering that the line obove is copied exactl from the site 
> examples, what I'm doing wrong?

works for me and on the DPaste site:
http://dpaste.dzfl.pl/00b66ba8

what platform are you on and what version of D are you using?
are you passing any compiler flags or just running plain ol' 
"$>rdmd test.d" ?



More information about the Digitalmars-d mailing list