[PATCH 2 of 2] revset: introduce new operator "##" to concatenate strings/symbols at runtime
Matt Mackall
mpm at selenic.com
Mon Jan 5 15:00:04 CST 2015
On Mon, 2015-01-05 at 11:05 +0900, FUJIWARA Katsunori wrote:
> - have lower priority than any other prefix, infix and postfix operators
>
> good: ("dead" ## "beef") or ("feed" ## "face")
>
> bad: "dead" ## "beef" or "feed" ## "face"
> => means "dead" ## ("beef" or "feed") ## "face",
> and causes syntax error
Um.. why? In C, it's obviously got very high effective precedence,
because it happens in the preprocessor before any of the real operators
are considered.
I queued the first patch for default, thanks.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list