diff options
author | Araq <rumpf_a@web.de> | 2014-01-23 16:45:17 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-01-23 16:45:17 +0100 |
commit | 2ecff76aac65f7dfad3a6c16929d4c70dd8394fc (patch) | |
tree | 92edf54217300cc29a18ae68aea7053b70fcdfcc /compiler | |
parent | f4b81ba92bdf413c70a2276b327bf7e0f433ba73 (diff) | |
download | Nim-2ecff76aac65f7dfad3a6c16929d4c70dd8394fc.tar.gz |
master compiler compiles with devel
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ropes.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/ropes.nim b/compiler/ropes.nim index 707c29123..ce81aae37 100644 --- a/compiler/ropes.nim +++ b/compiler/ropes.nim @@ -283,11 +283,10 @@ proc ropef(frmt: TFormatStr, args: varargs[PRope]): PRope = assert(RopeInvariant(result)) {.push stack_trace: off, line_trace: off.} -proc `~`*(r: expr[string]): PRope = +proc `~`*(r: string): PRope = # this is the new optimized "to rope" operator # the mnemonic is that `~` looks a bit like a rope :) - var r {.global.} = r.ropef - return r + return r.ropef {.pop.} proc appf(c: var PRope, frmt: TFormatStr, args: varargs[PRope]) = |