Max Zerzouri
7527da7043
.n.isNil checks for tyTuple PTypes.
2015-03-07 17:56:29 +13:00
Max Zerzouri
dba25d2622
enable syntax for anonymous tuples.
...
Turns out to be slightly problematic as `(int, int)` could be logically
thought of as an expression evaluating to a tuple value containing
two typedesc[int]s.
To disambiguate, the zero-tuple's type must still be written as
`tuple[]`, and what would be tuple value expressions containing only
typedescs are interpreted as types.
() # value of type `tuple[]`
(int, int) # tuple type
(int, int, ()) # value of type `(typedesc[int], typedesc[int], tuple[])`
2015-03-06 12:23:31 +13:00
Max Zerzouri
9c126282b2
interpret tuple as a class and tuple[] as the empty tuple
...
When the indentation syntax is allowed it is always interpreted as a
tuple:
type
Unit = tuple
2015-03-06 12:20:15 +13:00
Dominik Picheta
bab8190b67
Fixes bugs introduced by ee62d56cad. Closes #2227 .
2015-03-05 21:18:28 +00:00
reactormonk
4e1afdd3e2
Merge pull request #2265 from jobe2015/korr_hashes_doku
...
Changed some characters (&! -> !&) in the documentation in lib/pure/hash...
2015-03-06 01:28:22 +05:00
Araq
cac259cdfb
fixes #2229
2015-03-05 20:39:25 +01:00
Johanna Berewinkel
04906d6993
Changed some characters (&! -> !&) in the documentation in lib/pure/hashes.nim
2015-03-05 12:01:42 +01:00
Araq
3adcad1b5d
fixes #2250
2015-03-05 11:17:14 +01:00
Andreas Rumpf
70d0894ace
Merge pull request #2249 from flaviut/fix-nimcheck
...
Fix #2247
2015-03-05 11:14:40 +01:00
Flaviu Tamas
08680cfebd
Fix #2247
...
Thanks @Araq for the suggestion
2015-03-04 21:21:10 -05:00
Araq
d61f326f38
prevent name mangling for C++ DLLs
2015-03-05 01:34:09 +01:00
Araq
83cab19c62
fixes #2252
2015-03-04 21:19:38 +01:00
Araq
8ade324b8c
cleaned up whitespace
2015-03-04 18:17:43 +01:00
Andreas Rumpf
1ca2db0273
Merge pull request #2260 from oderwat/upd-deprecated-repeats
...
Updates to remove deprecated repeatStr() and repeatChar() from all files.
2015-03-04 16:42:13 +01:00
Andreas Rumpf
32126aaad6
Merge pull request #2262 from jobe2015/re-replace-doku
...
Fixed examples in the documentation of module re
2015-03-04 16:39:55 +01:00
Johanna Berewinkel
12e4a62b44
Fixed examples in the documentation of module re (proc replace and proc replacef)
2015-03-04 09:05:30 +01:00
Hans Raaf
b902ea887b
Replaced deprecated repeatStr() with repeat().
2015-03-04 03:44:09 +01:00
Hans Raaf
58186f6c1d
Replaced deprecated repeatChar() with repeat() or spaces().
2015-03-04 03:30:43 +01:00
Andreas Rumpf
b1656f2db4
Merge pull request #2230 from Archs/devel
...
streams.ssWriteData: Call setLen only when new data truly increases the underlying string buffer
2015-03-04 03:08:38 +01:00
Andreas Rumpf
171de9c355
Merge pull request #2175 from def-/sorted
...
sorted & sortByIt
2015-03-04 03:08:21 +01:00
def
c3f6c7f8a3
Move sortByIt to algorithm module and add an example for it
2015-03-03 21:44:27 +01:00
Andreas Rumpf
8f43979cf6
Merge pull request #2232 from oderwat/upd-strutils
...
`repeat` instead of `repeatStr` + parameter swapped
2015-03-03 19:46:49 +01:00
Andreas Rumpf
9731fb5420
Merge pull request #2248 from chrisheller/devel
...
Make macros.nim expectKind error message with a single TNimrodNodeKind c...
2015-03-03 19:45:14 +01:00
Chris Heller
0553758ebd
Clone the implementation of cmpIgnoreStyle into macros.nim from typeinfo.nim so that we get rid of any imports in the core modules
2015-03-03 09:29:38 -08:00
Chris Heller
b54dfbce16
Remove use of .format() from macros.nim to avoid importing into core. There is still a remaining import of cmpIgnoreStyle from strutils that needs to be removed as well
2015-03-03 09:22:54 -08:00
Archs
758a883cc6
set the correct length for s.data when data truely increased
2015-03-04 00:28:18 +08:00
Hans Raaf
3546ff8819
Replaced repeatStr() and repeatChar() with more natural versions.
2015-03-03 16:37:54 +01:00
Araq
b870744d5d
makes Aporia build for 64bit archs
2015-03-03 13:53:31 +01:00
Araq
21ccc5d58e
parseopt is not deprecated anymore
2015-03-03 13:53:31 +01:00
Chris Heller
df7e388e0c
Make macros.nim expectKind error message with a single TNimrodNodeKind consistent with error message shown with a set of TNimrodNodeKind by displaying the actual node kind (as well as the expected)
2015-03-02 17:02:43 -08:00
Andreas Rumpf
f4e0f64f86
Update readme.md
2015-03-03 00:36:05 +01:00
Andreas Rumpf
8b05bf3e86
Merge pull request #2238 from oderwat/fix-2228-readall-osx
...
Fix for readAll(stdin) problem on OS X and better anyway. I can confirm this works on Windows.
2015-03-01 23:30:02 +01:00
Araq
76e44dd034
test tsets2.nim compiles again
2015-03-01 23:01:02 +01:00
Araq
24ae0c387f
some love for the testsuite; fixed regressions
2015-03-01 21:41:21 +01:00
Araq
566ee874cd
minor cleanups
2015-03-01 13:52:00 +01:00
Andreas Rumpf
6226973c7f
Merge pull request #2236 from def-/working-again
...
Make reading from stdin work again.
2015-03-01 13:20:00 +01:00
Andreas Rumpf
1b76e0165c
Merge pull request #2237 from c-blake/devel
...
Fix buggy rect(), doc comment, and unit test.
2015-03-01 13:19:34 +01:00
Hans Raaf
79ad73574c
Fix for readAll(stdin) problem on OS X and better anyway.
2015-03-01 03:35:20 +01:00
Charles Blake
840f80e45c
Fix buggy rect(), doc comment, and unit test.
2015-02-28 19:21:52 -05:00
def
cfab1394d2
Make reading from stdin work again.
...
Bootstrapping tested on Linux from csources.
2015-03-01 00:16:46 +01:00
Araq
2df10fc4a6
bootstrapping works again on Windows
2015-03-01 00:02:10 +01:00
Araq
2808b7f9a5
fixes #2233
2015-02-28 23:53:52 +01:00
Andreas Rumpf
4cb9fba335
Merge pull request #2234 from apense/devel
...
Addition of some complex hyperbolic functions
2015-02-28 23:50:34 +01:00
Andreas Rumpf
eff6a281c5
Merge pull request #2202 from def-/compile-stdin
...
Make compiler read files from stdin
2015-02-28 23:49:25 +01:00
def
c37e8035ea
When compiling from stdin write binary to stdinfile
2015-02-28 23:35:35 +01:00
def
6894ac7c0a
Rename stdin fake module name to stdinFile
2015-02-28 22:59:59 +01:00
Jonathan Edwards
b1e0d2058b
Addition of some complex hyperbolic functions
2015-02-28 16:12:36 -05:00
Araq
2ebeb0bd21
fixes #2169
2015-02-28 20:13:21 +01:00
Archs
f9b2f9565c
streams.ssWriteData: calling setLen only when new data truely increases the underlying string buffer
2015-03-01 00:33:40 +08:00
Andreas Rumpf
549920a85f
Merge pull request #2226 from def-/rationals
...
Rationals
2015-02-28 00:29:43 +01:00