Arne Döring
4f787ac4f4
fill region
2018-11-08 20:52:22 +01:00
Arne Döring
13defcc9f6
add doc string
2018-11-08 20:52:22 +01:00
Arne Döring
1d7c36bd8c
wordwrap stuff
2018-11-08 20:52:22 +01:00
Arne Döring
795d7e3217
WIP
2018-11-08 20:52:22 +01:00
Arne Döring
6a57ec6d2e
NaN fixes for clang backend ( #9652 )
2018-11-08 20:17:37 +01:00
Andreas Rumpf
3cf3c2d722
er... 'a not b' is an infix call
2018-11-08 09:39:27 +01:00
Andreas Rumpf
5845716df8
fixes parsing regressions; binary 'not' for 'not nil' must stay
2018-11-08 09:15:15 +01:00
Andreas Rumpf
05683e3aab
fixes #9633
2018-11-08 09:15:15 +01:00
Dominik Picheta
d0a02fe66b
Merge pull request #9642 from narimiran/callback-order
...
keep the order of the callbacks
2018-11-07 23:46:29 +00:00
Andreas Rumpf
8a357c270b
parser change: 'not' is always a unary operator; fixes #9574
2018-11-07 21:17:52 +01:00
Jacek Sieka
b1ad5fd7da
Simplify cgen forward proc ( #9635 )
...
* cgen: remove module resetting (unused)
* cgen: keep single list of forwarded modules
fewer counters to keep track of
* cgen: fix module lookup
2018-11-07 21:08:10 +01:00
Andreas Rumpf
4e94f49065
parser/grammar sync; fixes #9608 [backport]
2018-11-07 20:07:43 +01:00
Andreas Rumpf
1c73db08b8
nim check fix; fixes #9609 [backport]
2018-11-07 20:07:43 +01:00
Timothee Cour
08de33a2e3
remove ---path:"../compiler" from nimsuggest/nimsuggest.nim.cfg
2018-11-07 19:52:11 +01:00
Timothee Cour
f9bf095853
remove redundant -p:compiler in koch.nim given modules use import compiler/foo
2018-11-07 19:52:11 +01:00
Andreas Rumpf
cb4d810659
make Nim take roughly 100MB less RAM for bootstrapping via a new compiler switch -d:leanCompiler; useful for the Raberry PI
2018-11-07 18:36:52 +01:00
narimiran
15c66a06f9
keep the order of the callbacks
2018-11-07 15:22:02 +01:00
Konstantin Molchanov
d5e113c3a6
Add readData proc that accepts a string.
2018-11-07 11:26:51 +01:00
Arne Döring
c2c05f5e72
fix #9639 ( #9640 )
2018-11-07 10:58:48 +01:00
jcosborn
fc740c54ec
fixes #9600 ( #9601 )
2018-11-07 08:40:00 +01:00
pgkos
b9cdad7497
times - remove unneeded negative sign when parsing formats z and zz ( #9631 )
...
* fix wrong utcoffset sign for formats z and zz
* add tests for the timezone offset formats
2018-11-06 22:29:23 +01:00
Andreas Rumpf
73c306258b
Nimscript: fixes #9246 [backport]
2018-11-06 21:55:13 +01:00
Andreas Rumpf
24902394f7
VM: don't inject destructor calls, refs #7041
2018-11-06 19:36:39 +01:00
Miran
66a76d3165
Merge tests into a larger file (part 8 of ∞) ( #9583 )
...
* merge tuple tests
* merge trmacros tests
* merge template tests
2018-11-06 18:33:58 +01:00
Araq
c735b75f6f
compiler cleanup: flag tfOldSchoolExprStmt is gone
2018-11-06 13:55:03 +01:00
Araq
1fa22d4cfe
removed the undocumented #? strongSpaces parsing mode
2018-11-06 13:55:03 +01:00
Araq
25cb2e0c70
document system.UncheckedArray
2018-11-06 13:55:03 +01:00
Araq
1c7fbad378
make tests green again
2018-11-06 13:55:03 +01:00
Araq
e71410d74e
language cleanup: the .unchecked pragma is dead
2018-11-06 13:55:03 +01:00
Arne Döring
cc5b8c6ad2
Generic Complex type ( #9590 )
...
* remove `**`
* const `im` can now be used with Complex64
* converters from float|int to Complex are replaced by procs
* converters between various Complex types must stay to allow usage
of `im` with Complex64
* limit types for `+`, `-`, `/`, and `*` between Complex and float
* add `pow` for Complex and a number
* complex type changes
* unpublish approximation function
2018-11-05 20:27:46 +01:00
skilchen
da178e4090
make mod on floats available in the VM ( #9591 )
...
* make `mod` on floats available in the VM
* add testcase
* removed no longer needed imports
2018-11-05 09:36:28 +01:00
Timothee Cour
e4e19f8288
stripLineEnd aka chomp ( #9623 )
2018-11-05 08:01:31 +01:00
Federico Ceratto
62693457df
Add 'dedent' to documentation index ( #9615 )
2018-11-04 08:36:13 +01:00
Araq
2eff0ca2b8
added test case for #9594
2018-11-03 22:50:46 +01:00
Andreas Rumpf
ae27f8ac58
fixes #9611
2018-11-03 19:11:10 +01:00
Andreas Rumpf
c739b9192f
produce more helpful error messages when overloading resolution fails
2018-11-03 15:56:13 +01:00
Andreas Rumpf
b4f16fab49
Nim devel is version 0.19.9
2018-11-03 12:45:55 +01:00
Andreas Rumpf
a2e6a873af
fixes #9610
2018-11-03 11:04:30 +01:00
Neelesh Chandola
7a15d2d04b
Fixes #9556 ( #9604 ) [backport]
2018-11-02 18:55:53 +01:00
Neelesh Chandola
2bc016b172
Add test for #6836 ( #9602 )
2018-11-02 13:17:57 +01:00
Araq
234bed1b38
destructors; fixes #9594
2018-11-02 11:29:31 +01:00
Araq
bc26c08862
unicode.nim: minor alignment change
2018-11-02 11:29:30 +01:00
Miran
3806e5640a
delete unused issue_template.md
...
The templates in .github/ISSUE_TEMPLATE are used.
2018-11-02 09:30:33 +01:00
Timothee Cour
d294cec805
Revert "nimsuggest somehow transforms \n into \\x0A, not \x0A"
...
This reverts commit f96e2764c4 .
2018-11-01 14:29:18 -07:00
Timothee Cour
f96e2764c4
nimsuggest somehow transforms \n into \\x0A, not \x0A
...
/cc @Araq
2018-11-01 14:22:09 -07:00
Alexandros Naskos
eb3c9e1d1c
Added "typeof" and "restrict" to special words. ( #9226 )
...
* Added "typeof" and "restrict" to special words.
* Added C and C++ reserved keyword as object field identifier test
2018-11-01 17:24:02 +01:00
Neelesh Chandola
dbfc5c5a44
Fixes https://github.com/nim-lang/Nim/issues/6836 ( #9595 )
2018-11-01 17:23:30 +01:00
PMunch
e9ed4dccb6
Quote do now works with result in block ( #7343 )
...
* Fix result not being able to use in quote do
This fixes the annoying issue of not be able to use result inside a
quote do block. It works by a simple trick. The quote do mechanic is
based on dynamically creating a template and immediately calling it with
the arguments found within the quote do block. Since this is called in
the scope of the macro the result variable is shadowed. This trick works
by changing all occurences of result (which shouldn't cause any issues
as result isn't used for anything else for the same reason) to another
name and then passing in an IdentNode with result as a named parameter
with that name.
Note that currently this just replaces it with a fixed named variable
"res" which should be changed to a non-colliding, dynamically created
name.
* Fix hard coded parameter "res" to anonymous symbol
This fixes the hard coded parameter "res" to be an anonymous symbol
instead so it won't collide with other parts of the argument list.
* Add test case for result in quote do block
A simple test case based on GitHub issue #7323 on how you can't put
result in a quote do block. This test verifies that it actually works
correctly now.
* Add test for explicit capturing of result
* Rebased against devel
2018-10-31 22:14:29 +01:00
Arne Döring
d56312624e
Merge pull request #9586 from b3liever/fix-hypot-js
...
Fix #9585 hypot in js
2018-10-31 21:53:40 +01:00
Arne Döring
0059f16dfb
Merge pull request #9511 from krux02/krux02-devel
...
Krux02 devel
2018-10-31 17:12:36 +01:00