can HEX_DIGIT_SEQUENCE not run yet?

Visto 5 veces
Saltar al primer mensaje no leído

Usagi Ito ( @USAGI_WRP )

no leída,
16 mar 2012, 4:57:4916/3/12
a General Dart Discussion
hi, folks.

I'm reading the spec 0.07, and tried HEX_DIGIT_SEQUENCE with DartVM
and dartboard. but I cannot run it. Is the problem my source code and
understanding the spec? or bug of the Dart VM or not implement yet?

code sample:
http://try.dartlang.org/s/C4Iy

it's ok at the line 3 as an unicode HEX_DIGIT pattern. but, comment
out the line 3 and uncomment the line 4 to get an error.

thanks.

Lasse R.H. Nielsen

no leída,
16 mar 2012, 12:36:5816/3/12
a Usagi Ito ( @USAGI_WRP ),General Dart Discussion
On Fri, Mar 16, 2012 at 09:57, Usagi Ito ( @USAGI_WRP )
<us...@wonderrabbitproject.net> wrote:
>
> code sample:
> http://try.dartlang.org/s/C4Iy
>
> it's ok at the line 3 as an unicode HEX_DIGIT pattern. but, comment
> out the line 3 and uncomment the line 4 to get an error.

You write
"\u{00a9 00a9 00a9}"
The \u{..} format only represents a single character, so you should
only put a single hexadecimal number in there. That number can have a
length from 1 to 6 digits, e.g.,
"\u{a9}\u{00a9}\u{0000a9}"
It's rarely shorter than plain \uXXXX, but you can represent
characters outside the basic multilingual plane (i.e., with code
points above 0xffff).
Example:
"\u{1F4A9}"

/L
--
Lasse R.H. Nielsen
l...@google.com
'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K -
Denmark - CVR nr. 28 86 69 84

Usagi Ito ( @USAGI_WRP )

no leída,
16 mar 2012, 13:34:5716/3/12
a General Dart Discussion
Thanks for your answer, it's clearly!

I realized I was mistaken about the task of HEX_DIGIT_SEQUENCE and the
semantic of the SEQUENCE.

thank you :)
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos