Adam Strzelecki
4674b3eb80
Introduce {.noRewrite.} expr pragma disabling TR
...
Term rewriting macros/templates are currently greedy and they will rewrite as
long as there is a match. So there was no way to ensure some rewrite happens
only once, eg. when rewriting term to same term plus extra content.
With new macro we can actually prevent further rewriting on marked expr or
stmts, eg. with given example echo(...) will be rewritten just once:
template pwnEcho{echo(x)}(x: expr) =
{.noRewrite.}: echo("pwned!")
echo "ab"
2015-06-07 13:14:52 +02:00
yglukhov
c55f5dfca2
Perform lambda lifting for compile-time stuff when targeting JS. Enable unittest test.
2015-06-07 13:14:10 +02:00
Andreas Rumpf
bbb1bdb4a9
Merge pull request #2643 from grncdr/TAny-and-inheritance
...
Resolve base type fields in `[](TAny, string)`
2015-06-07 10:56:29 +02:00
Andreas Rumpf
94b7da4297
Merge pull request #2645 from def-/builtin_overflow
...
Use builtin overflow functions of Clang and GCC (WIP, RFC)
2015-06-07 10:55:23 +02:00
Andreas Rumpf
cb1f1cfd52
Merge pull request #2682 from koalazen/refactor_lowerbound_algorithm
...
shorten lowerBound in algorithm.nim
2015-06-07 10:53:12 +02:00
Andreas Rumpf
380d617f86
Merge pull request #2867 from Araq/fix-2584
...
Fixes #2584
2015-06-07 10:51:35 +02:00
Andreas Rumpf
faed57dff0
Merge pull request #2878 from Perelandric/rename_fixes
...
Some fixes from the recent `T` renaming
2015-06-07 10:46:35 +02:00
Andreas Rumpf
2725d89376
Merge pull request #2875 from nanoant/patch/bring-back-bootstrap-executable-bit
...
Bring back (again) bootstrap.sh executable bit
2015-06-07 10:45:16 +02:00
patrick dw
ff83efa767
Fixed malformed pragma
2015-06-06 12:01:26 -05:00
patrick dw
13163ff13f
Reverted TZipFileStream (is going to be reference type)
2015-06-06 10:45:01 -05:00
patrick dw
ca684da044
Updated deprecated names
2015-06-06 10:18:16 -05:00
patrick dw
2e25574ff1
Updated usage of deprecated types
2015-06-06 09:35:15 -05:00
patrick dw
a511562822
Renaming fixes in sdl.nim
2015-06-06 09:09:48 -05:00
patrick dw
a400987590
Dropped from TZipFileStream
2015-06-06 08:57:13 -05:00
Araq
54750f608d
fixes #2774
2015-06-06 13:25:20 +02:00
Araq
d94fcb38f0
fixes #2687
2015-06-06 11:59:36 +02:00
Araq
adfdb4623d
use new type names
2015-06-06 11:59:35 +02:00
Araq
a730a974ed
fixes #2854
2015-06-06 11:59:35 +02:00
Araq
706080dcbd
fixes 'noreturn' regression for Visual C++
2015-06-06 11:59:34 +02:00
Dominik Picheta
9d03d166a8
Update version in compiler.nimble
2015-06-05 17:10:17 +01:00
Simon Hafner
c4c64804e5
moved sexp.nim to nimsuggest repo
2015-06-05 11:04:15 -05:00
Dominik Picheta
b4b7bd5af3
Merge branch 'boopcat-exportnewsocket' into devel
2015-06-05 15:06:15 +01:00
Dominik Picheta
c5708ef1ee
Merge branch 'exportnewsocket' of https://github.com/boopcat/Nim into boopcat-exportnewsocket
...
Conflicts:
lib/pure/asyncnet.nim
2015-06-05 15:06:02 +01:00
Dominik Picheta
ad6ad5d8d0
s/procedure/routine/ in tests.
2015-06-05 14:53:49 +01:00
Dominik Picheta
1cf1610bdf
Rename errUndeclaredProcedure to errUndeclaredRoutine.
2015-06-05 14:50:14 +01:00
Adam Strzelecki
7909591d41
Bring back (again) bootstrap.sh executable bit
...
Reverts "bootstrap.sh: cannot keep exec bit on windows" commit
2d2eca18b8 .
We do not need to remove executable bits to workaround old msysGit bug that
shows files having executable bits as modified.
This can and should be addressed by msysGit user either by using latest version
that will treat `bootstrap.sh` as having executable bit because of UNIX Shebang
presence, or setting Git config's `core.fileMode` to false.
See:
http://stackoverflow.com/questions/12193020/file-mode-with-msysgit
http://www.grumpydev.com/2011/01/19/switching-from-cygwin-to-msysgit-git-thinks-everything-has-been-modified/
Quoting Git manual:
core.fileMode
If false, the executable bit differences between the index and the
working copy are ignored; useful on broken filesystems like FAT.
See git-update-index(1). True by default.
2015-06-05 14:00:27 +02:00
Andreas Rumpf
62376c0657
Merge pull request #2824 from yglukhov/js-ct-lambda-lifting
...
Perform lambda lifting for compile-time stuff when targeting JS.
2015-06-05 13:04:02 +02:00
Andreas Rumpf
f8326ad4c0
Merge pull request #2859 from nanoant/patch/norewrite-pragma
...
{.noRewrite.} pragma for term rewriting
2015-06-05 12:53:15 +02:00
Andreas Rumpf
bf70a137f0
Merge pull request #2873 from nanoant/devel
...
Fixup: Reverted TZipFileStream name change
2015-06-05 12:48:49 +02:00
Adam Strzelecki
2dcaa75e2d
Fixup: Reverted TZipFileStream name change
...
This fixes broken b0469c11e3 that incompletely
reverted TZipFileStream name change.
2015-06-05 12:44:28 +02:00
Dominik Picheta
16da925a0a
Removed nimsuggest from this repo.
2015-06-04 23:25:29 +01:00
Dominik Picheta
ed46ca6d57
Add WSAEADDRINUSE to winlean.
2015-06-04 23:23:41 +01:00
Dominik Picheta
0b124a2043
Fixes compilation with --gc:markandsweep.
2015-06-04 23:12:38 +01:00
Dominik Picheta
2d9a24f3f6
Hopefully fixes nimsuggest building against the compiler package.
2015-06-04 23:07:57 +01:00
Oscar Campbell
0a810fd10f
Treat unitest's default esc.seq. output as empty.
2015-06-04 22:53:39 +02:00
Oscar Campbell
cdf631c508
Merge branch 'devel' into bugfix-2858-testament-sources-system-wide
2015-06-04 22:43:18 +02:00
Andreas Rumpf
c53f65f1e7
Merge pull request #2871 from apense/patch-7
...
Fixed Error hierarchy links in manual
2015-06-04 22:20:23 +02:00
apense
846489f813
Fixed links in Error hierarchy
...
Manual contained invalid links
2015-06-04 16:18:18 -04:00
Dominik Picheta
e59fdc6572
Merge pull request #2870 from apense/patch-6
...
Fixed code indentation in procs.txt
2015-06-04 19:21:30 +01:00
apense
9d3b2d1e05
Fixed code indentation in procs.txt
...
Now matches tut2.txt
2015-06-04 13:31:40 -04:00
Dominik Picheta
5d6f16cc1a
Got rid of errUndeclaredProcedureField.
2015-06-04 16:39:38 +01:00
Dominik Picheta
22f6017ab8
Fixes #2584
...
Better compiler errors for accessing undeclared fields, calling undeclared
procedures and procedure fields.
2015-06-04 13:55:48 +01:00
Araq
ccb9ae2d52
stdlib: don't use deprecated symbols
2015-06-04 13:18:42 +02:00
Perelandric
e0ecaa86ba
Reverted all changes
2015-06-04 13:18:42 +02:00
Perelandric
b0469c11e3
Reverted TZipFileStream name change
2015-06-04 13:18:41 +02:00
Perelandric
2124952db3
Added line breaks to long 'deprecated' pragmas
2015-06-04 13:18:40 +02:00
pdw
cbd8da93f4
lib/wrappers/s-z - Dropped 'T' from types
2015-06-04 13:18:40 +02:00
pdw
b2bc5440aa
lib/wrappers/c-r - Dropped 'T' from types
2015-06-04 13:18:39 +02:00
pdw
9e771ca707
lib/windows - Dropped 'T' from types
2015-06-04 13:18:38 +02:00
pdw
2ca90a20a1
lib/system/g-w - Dropped 'T' from types
2015-06-04 13:18:37 +02:00