Yesterday I read


Was some fun, but I still have no idea what the second line in
    proc `=destroy`(x: var T) =
      lazyDestroy cast[pointer](x), proc (p: pointer) =
        let x = cast[var T](p)

really is. Looks like a proc call without parenthesis, but with a equal sign at 
line end? No idea currently.

Well, maybe a typo, as there is at least one typo in that document:
    proc add*(s: var string; c: char) =
      if s.len >= s.cap: resize(s)[s.len] = c

Final inc(s.len) is missing.

Reply via email to