You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
comptime re-interprets escapes in a raw string literal: const C: str = r#"a\\"b"# yields a"b #1246
const desugars to a comptime-wrapped let (Parser.w parse_const_decl); the comptime materialization of the string value processes \" and \n as escapes although the literal is raw (§3.2). Same on the installed compiler and a fresh release build.
Found on the #1242 branch when the embedded stdlib/runtime/clang-resource generators were switched from let to const: <embedded-std>/std/build.w came out with its \" unescaped and every use std.build program failed to parse. The generators stay on let (+ .clone() on the returns) until this is fixed.
Activity
A global is never moved out of: transfer out of a non-const global is…
A comptime string value re-emitted as a literal carries the raw marker (