Invalid trainling code unit
rumbu
rumbu at rumbu.ro
Fri Dec 14 22:33:16 PST 2012
On Saturday, 15 December 2012 at 06:22:50 UTC, Joshua Niehus
wrote:
> 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" ?
I'm using D-Ide, compiling with "DMD32 D Compiler v2.060" with
the following arguments: -c "$src" -of"$obj" $importPaths -gc
-debug -w -unittest
More information about the Digitalmars-d
mailing list