about summary refs log tree commit diff stats
pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } .highlight .hll { background-color: #ffffcc } .highlight .c { color: #888888 } /* Comment */ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .highlight .k { color: #008800; font-weight: bold } /* Keyword */ .highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */ .highlight .gr { color: #aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #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 */
discard """
  output: '''
100
0
float32
float32
(name: "Resource 1", readers: ..., writers: ...)
'''
"""


import tables


block tgeneric0:
  type
    TX = Table[string, int]

  proc foo(models: seq[Table[string, float]]): seq[float] =
    result = @[]
    for model in models.items:
      result.add model["foobar"]

  # bug #686
  type TTyan>/+9
Commit message (Collapse)AuthorAgeFilesLines
* mergeAnselm R Garbe2009-07-182-5/+5
|\
| * removed misleading commentAnselm R Garbe2009-07-171-2/+2
| |
| * mergeAnselm R Garbe2009-07-171-0/+1
| |\
| * | it's all nsz's hard investigation effort, hail nsz! ;)Anselm R Garbe2009-07-172-5/+5
| | |
* | | applied nsz' dwm.1 fixes, thanks Szabolcs!Anselm R Garbe2009-07-181-14/+6
| |/ |/|
* | Added tag 5.6 for changeset 555070221577Anselm R Garbe2009-07-141-0/+1
|/
* final style fixes 5.6Anselm R Garbe2009-07-141-15/+13
|
* removed int cast in TAGMASK as suggested by nszAnselm R Garbe2009-07-141-1/+1
|
* some stylistic changesAnselm R Garbe2009-07-141-9/+8
|
|
* hotfixAnselm R Garbe2009-07-021-2/+3
|
* changed focusmon/tagmon to work on prev/next instead (-1/+1), changed ↵Anselm R Garbe2009-07-023-31/+49
| | | | shortcuts to Mod1-, Mod1-. and Mod1-Shift-, Mod1-Shift-.
* removed some empty linesAnselm R Garbe2009-07-021-43/+6
|
* interactive resizals allow display dimensions againAnselm R Garbe2009-07-021-20/+33
|
* more sensibleAnselm R Garbe2009-07-021-1/+1
|
* hmm, can't decide on the default monitor symbol setAnselm R Garbe2009-07-021-1/+1
|
* updateAnselm R Garbe2009-07-022-2/+2
|
* introduced monitor symbolsAnselm R Garbe2009-07-022-5/+5
|
* minor fixAnselm R Garbe2009-07-021-3/+3
|
* several bugfixesAnselm R Garbe2009-07-013-21/+10
|
* some minor fix if xinerama is disabled, still some odd behavior in thereAnselm R Garbe2009-07-012-3/+5
|
* updated year rangesAnselm R Garbe2009-06-301-3/+3
|
* fixed usage of sx, sy, sw, shAnselm R Garbe2009-06-301-14/+13
|
* don't draw monitor number, if there is just one monitorAnselm R Garbe2009-06-301-1/+1
|
* fixed order of transient monitor applicaion and rule applicationAnselm R Garbe2009-06-301-18/+22
|
* hotfixAnselm R Garbe2009-06-301-3/+3
|
* several simplificationsAnselm R Garbe2009-06-302-109/+83
|
* play safeAnselm R Garbe2009-06-301-2/+2
|
* applied a collection of Christof Musik patches, and fixed an issue reported ↵Anselm R Garbe2009-06-301-24/+32
| | | | by waistcoats on IRC
* some cleanup handling for index based mon searchAnselm R Garbe2009-06-271-20/+19
|
* using mon in function names for consistency reasonsAnselm R Garbe2009-06-271-11/+11
|
* fixed several issues with focus handling via mouse, also added sending ↵Anselm R Garbe2009-06-271-43/+79
| | | | clients to the right monitor they belong to after mouse moves/resizals
* fixed focusmon brokenessAnselm R Garbe2009-06-271-7/+5
|
* tag fixAnselm R Garbe2009-06-261-4/+2
|
* typo fixAnselm R Garbe2009-06-251-1/+1
|
* assign selected tags of target monitor to client when tagmon is performed ↵Anselm R Garbe2009-06-251-0/+1
| | | | (less obtrusive imho)
= @[] for model in models.items: result.add model["foobar"] type Obj = object field: Table[string, string] var t: Obj discard initTable[type(t.field), string]() block tgeneric4: type TIDGen[A: Ordinal] = object next: A free: seq[A] proc newIDGen[A]: TIDGen[A] = newSeq result.free, 0 var x = newIDGen[int]() block tgeneric5: # bug #12528 proc foo[T](a: T; b: T) = echo T foo(0.0'f32, 0.0) proc bar[T](a: T; b: T = 0.0) = echo T bar(0.0'f32) # bug #13378 type Resource = ref object of RootObj name: string readers, writers: seq[RenderTask] RenderTask = ref object name: string var res = Resource(name: "Resource 1") (proc (r: typeof(res)) = echo r[])(res) # bug #4061 type List[T] = object e: T n: ptr List[T] proc zip*[T,U](xs: List[T], ys: List[U]): List[(T,U)] = discard proc unzip*[T,U](xs: List[tuple[t: T, u: U]]): (List[T], List[U]) = discard proc unzip2*[T,U](xs: List[(T,U)]): (List[T], List[U]) = discard