summary refs log tree commit diff stats
path: root/tests/tuples/tdifferent_instantiations.nim
Commit message (Expand)AuthorAgeFilesLines
* typo; last commit fixes #1910Araq2015-01-181-1/+1
* revert to old behaviour: tuple field names are not ignored anymore; fixes #1920Araq2015-01-181-0/+9
'/ahoang/Nim/commit/tests/assign/tcopy.nim?h=devel&id=69e15ac32fd92abe1d950275ab4b0d830d8b13e1'>69e15ac32 ^
d0772feb0 ^


2cdfe35e7 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25



                                       













                                         

                                


                             

 
discard """
  file: "tcopy.nim"
  output: "TEMP=C:\\Programs\\xyz\\bin"
"""
# tests the substr proc

import
  strutils

proc main() =
  const
    example = r"TEMP=C:\Programs\xyz\bin"
  var
    a, b: string
    p: int
  p = find(example, "=")
  a = substr(example, 0, p-1)
  b = substr(example, p+1)
  writeLine(stdout, a & '=' & b)
  #writeLine(stdout, b)

main()
#OUT TEMP=C:\Programs\xyz\bin