summary refs log tree commit diff stats
path: root/doc/filelist.txt
Commit message (Expand)AuthorAgeFilesLines
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
* bugfix: proper return types for templatesAraq2011-06-151-1/+2
* got rid of some arcane module namesAraq2011-04-211-9/+4
* fixed pango/pangoutils new wrappersAndreas Rumpf2010-02-261-0/+0
* continued work on html/xmlparserrumpf_a@web.de2010-02-141-0/+0
* fixed typos in documentationAndreas Rumpf2009-11-151-2/+2
* version 0.8.2rumpf_a@web.de2009-10-211-1/+2
* added tools and web dirsAndreas Rumpf2009-09-151-0/+0
* version 0.7.8Andreas Rumpf2009-05-081-0/+2
* version 0.7.6Andreas Rumpf2009-04-221-1/+2
* version 0.7.4Andreas Rumpf2009-01-071-41/+54
* version 0.7.0Andreas Rumpf2008-11-161-6/+3
* first releaseRumpf2008-06-231-0/+0
* Initial importAndreas Rumpf2008-06-221-0/+44
: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# bug #1833
iterator myitems*[T](a: var seq[T]): var T {.inline.} =
  ## iterates over each item of `a` so that you can modify the yielded value.
  var i = 0
  let L = len(a)
  while i < L:
    yield a[i]
    inc(i)
    doAssert(len(a) == L, "the length of the seq changed while iterating over it")

# Works fine
var xs = @[1,2,3]
for x in myitems(xs):
  inc x

# Tuples don't work
var ys = @[(1,"a"),(2,"b"),(3,"c")]
for y in myitems(ys):
  inc y[0]