Andreas Rumpf
e4c759fbff
Merge branch 'devel' into araq-misc
2018-08-16 01:22:21 +02:00
Andreas Rumpf
1061e26bc9
implements 'case statement macros' in order to encourage the development of pattern matching mechanisms that are not terrible to look at
2018-08-16 00:16:49 +02:00
Andreas Rumpf
da41fc1801
put the new for loop macros under an experimental switch named 'forLoopMacros'
2018-08-15 17:45:57 +02:00
Andreas Rumpf
27e1fbe7db
implement the --nilseqs switch properly
2018-08-15 16:56:32 +02:00
Andreas Rumpf
0da91aa744
changes how the now illegal 'string == nil' comparison is detected
2018-08-15 16:31:56 +02:00
LemonBoy
531c66d1ec
Allow taking address of skForVar variables ( #8632 )
...
Fixes #8630
2018-08-14 21:28:14 +02:00
LemonBoy
c04404635b
Fix unsound transform pass ( #8633 )
...
When a `var openArray[T]` function parameter goes trough the
`transformAddrDeref` pass we may lose the `var` specifier, leading to
nasty crashes at runtime.
2018-08-14 20:38:04 +02:00
Araq
f91a181f58
make tests green again
2018-08-13 23:16:03 +02:00
Araq
a0cde8cee6
Merge branch 'devel' into araq-misc
2018-08-13 20:16:18 +02:00
Araq
420ed0596b
fixes more nil handling regressions
2018-08-13 17:27:44 +02:00
cooldome
aa1cdebdc2
Converters to take into account constraints. Fixes #7520 ( #8593 )
2018-08-13 15:02:20 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
LemonBoy
3cb963f114
Fixes 8616 ( #8617 )
...
* Don't leave dangling forward references to types
Fixes #8616
* Add a test case for #8616
2018-08-12 20:43:30 +02:00
LemonBoy
ba7c874a7d
Mysterious fix for #8550 ( #8561 )
...
Replacing the `for` body with a nkEmpty node is not the right thing to
do.
2018-08-12 20:41:48 +02:00
Andreas Rumpf
ba6601b149
fixes #8599
2018-08-10 12:09:51 +02:00
Andreas Rumpf
404de2f23e
Merge branch 'devel' into araq-misc
2018-08-10 12:06:16 +02:00
Andreas Rumpf
7e2418bd22
make nimsuggest go up in the directory tree in order to determine the main .nim file
2018-08-10 09:37:17 +02:00
Andreas Rumpf
864d24d70e
change the VM's max instruction count to 3_000_000
2018-08-10 08:42:13 +02:00
Araq
265003df1a
deprecated regionized pointers
2018-08-10 01:20:14 +02:00
Araq
b4e5c9d075
deprecate the .this pragma
2018-08-09 20:31:40 +02:00
alaviss
a2c5ffba0c
Uses XDG_CACHE_HOME if available ( #8585 )
...
* compiler/options: use XDG_CACHE_HOME if set
* doc/nimc: update documentation
2018-08-09 10:50:36 +02:00
Araq
640b30a47f
codegen improvement: map the empty string to 'nil' since it's now allowed to do that
2018-08-08 12:06:00 +02:00
Araq
a45faf2dd6
fixes the new nimcache handling
2018-08-08 09:35:38 +02:00
Andreas Rumpf
ef9dd46466
'nimcache' defaults to ~/.cache on Posix; cleaned up documentation
2018-08-08 09:35:38 +02:00
Andreas Rumpf
5b6b73f2a2
use slashes instead of dots for paths
2018-08-08 09:33:39 +02:00
Andreas Rumpf
a377c5cce4
introduce the --define 'osx' as an alias for 'macosx'
2018-08-08 09:33:37 +02:00
Araq
dd75346292
fixes the new nimcache handling
2018-08-07 22:54:45 +02:00
Araq
d8e66d6acc
fixes merge conflict
2018-08-07 22:25:01 +02:00
Timothee Cour
c352329714
runnableExamples: keep (gitignored) generated foo_examples.nim for inspection even on success ( #8544 )
2018-08-07 18:52:55 +02:00
andri lim
4d5cce9882
fixes #6255 , add system.ashr arithmetic right shift ( #8547 )
2018-08-07 18:41:30 +02:00
andri lim
c3d5ec8ead
fixes #8421 , fixes #7968 , Nim compiler compiles with MSVC C89 version ( #8556 )
2018-08-07 09:07:18 +02:00
Andreas Rumpf
e067a7681f
'nimcache' defaults to ~/.cache on Posix; cleaned up documentation
2018-08-06 23:38:29 +02:00
Andreas Rumpf
e555e97b4b
use slashes instead of dots for paths
2018-08-06 20:00:26 +02:00
Andreas Rumpf
e9d67266ef
introduce the --define 'osx' as an alias for 'macosx'
2018-08-06 19:58:48 +02:00
andri lim
6e3d1dced5
fixes #5617 , 'copyLineInfo' addition ( #8523 )
2018-08-05 23:38:21 +02:00
Andreas Rumpf
c57e320c94
fixes 7833 ( #8533 )
...
* fixes #7833 ; still to-do: fix setLen
* make tests green again
* also fixes setLen and string concats; refs #7833
* change formating to avoid a compiler warning
* emit the write barrier also for addChar
* fixes yet another regression
* make setLengthStr compile for the old version
* make growobjcrash complete earlier
2018-08-05 11:42:38 +02:00
Araq
96c6c82d55
fixes #8425
2018-08-04 20:10:03 +02:00
Charlie Barto
e403ef25ac
fix shell quoting error for static libraries ( #8532 )
2018-08-04 01:18:27 +02:00
andri lim
78c0ac5407
fixes #7827 , bindSym enhancement ( #8499 )
...
* bindSym power up, working prototype
* update bindSym doc
* add bindSym test
* fix some typo
* fix bindSym doc
* get rid of specialops field from vm
* add experimental: dynamicBindSym
2018-08-02 12:56:44 +02:00
Timothee Cour
9e37e3e5e8
add hintCC to optionally disable printing 'CC: filename' ( #8479 )
2018-08-01 09:22:51 +02:00
Timothee Cour
818d9be311
lineInfoObj (and check, expect) now return absolute paths (#8466 )
2018-07-31 23:02:04 +02:00
Oscar Nihlgård
931273cc6b
Fix ref bug in vmgen ( #8424 )
2018-07-30 22:28:24 +02:00
Oscar Nihlgård
5491f1f53b
Deprecate the dot style for import paths ( #8474 )
2018-07-30 09:24:16 -04:00
Timothee Cour
c0f78ec012
fixes #8419 fixes #8420 ; workaround #6071 workaround nim-lang/website#98 ( #8423 )
...
add --git.devel option to override doc generated "edit" links; add --nimCompiler option to nimweb
2018-07-30 14:02:18 +02:00
Araq
f2ddd99539
fixes #8425
2018-07-30 12:20:58 +02:00
Araq
d270245a01
disable --app:gui for non Windows targets; fixes #2576
2018-07-30 12:20:58 +02:00
cooldome
404f0d64af
Add sizeof for arrays of integral types ( #8445 )
2018-07-30 11:00:06 +02:00
LemonBoy
c3a9ac4d35
Try conversion to static[T] in generic instantation ( #8443 )
...
Fixes #8439
2018-07-30 10:51:14 +02:00
skilchen
becb6743f8
fixes #8434 (incomplete info in errmsg about 'required type') ( #8441 )
2018-07-30 10:41:59 +02:00
Timothee Cour
06571f5495
fixes #8323 : avoid polluting git status after nim doc foo ( #8415 )
2018-07-30 10:36:23 +02:00