From 2ecff76aac65f7dfad3a6c16929d4c70dd8394fc Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 23 Jan 2014 16:45:17 +0100 Subject: [PATCH] master compiler compiles with devel --- compiler/ropes.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/ropes.nim b/compiler/ropes.nim index 707c291232..ce81aae374 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]) =