Email or username:

Password:

Forgot your password?
13 comments
iximeow

@fay59 @whitequark its because the hex literal is truncated to a byte, and then that's your character ?????

Random Internet Cat

@iximeow This is prohibited by the C++ standard, and GCC rejects if you pass "-pedantic -pedantic-errors".

prom™️

@iximeow @whitequark ah. yes. that seems "logical" to me, because this is C. pardon my (slightly) gray hair.

Félix

@iximeow @whitequark I know I ran into this before because now I remember I tried to write “\x01” “c” to resolve the ambiguity and it STILL merges them

lawless polymorph

@fay59 @iximeow @whitequark i tried this out and it didn't merge them 😕

Félix

@typeswitch @iximeow @whitequark lol I guess I got confused because -Xclang -ast-dump shows char[3] “\001c” and the octal syntax eats exactly 3 digits

Félix

@typeswitch @iximeow @whitequark (and c isn’t an octal digit, but \010000 still parses to “\010””000” and I should probably get away from computers for the rest of the day)

Go Up