Andreas Rumpf
cb03ae2c9f
semstmts: fewer empty lines
2018-04-19 08:54:23 +02:00
Andreas Rumpf
17cb2f2d4c
threadpool: minor documentation improvement
2018-04-19 08:54:23 +02:00
Araq
5d13e3f28b
fixes #7507
2018-04-19 00:09:55 +02:00
WhiteDuke
e237428d42
Fix bright option ( #7622 )
...
Setting the option to true, then to false would not turn off bright attribute.
2018-04-18 23:29:10 +02:00
Araq
4a9f6f00ad
fixes system.doAssertRaises
2018-04-18 21:30:38 +02:00
Araq
9bc963508f
nimpretty: next steps
2018-04-18 21:30:38 +02:00
Araq
a230307b48
little progress on nimpretty
2018-04-18 21:30:38 +02:00
Oscar Nihlgård
fdf1d12380
Change type of Timeval.tv_sec to posix.Time ( #7646 )
2018-04-18 21:24:28 +02:00
genotrance
b9cafe5752
test case for #1154 ( #7648 )
2018-04-18 21:19:48 +02:00
genotrance
0448d3f6ea
test case for #2416 ( #7649 )
2018-04-18 21:19:23 +02:00
treeform
35b0cc67e8
Remove PHP backend. ( #7606 )
...
* remove php
* fix
* keep nimphpext
* remove targetJS enum
2018-04-18 20:40:11 +02:00
skilchen
a708fda733
allow stringification of DurationZero ( #7625 )
2018-04-18 13:22:05 +02:00
Arne Döring
9d4fd1f1bb
eqIdent new returns false on non identifier types ( #7629 )
2018-04-17 01:23:38 +02:00
Hendrik
b1b517128e
os.setLastModificationTime*(file: string, t: times.Time) ( #7543 )
...
* add proc toFILETIME to winlean
* add proc toWinTime to times
* add proc setFileTime to winlean
* openHandle with write access
* add proc setLastModificationTime to os
* moved epochDiff,rateDiff constants and proc toWinTime
The constants were moved out of the when defined(JS) block so that they
are alsways available in proc toWinTime.
proc toWinTime was moved above the # Deprecated procs comment. Best new
location seemed to be with the toUnix proc.
2018-04-16 22:03:24 +02:00
Oscar Nihlgård
c4d7cc3da0
Generate populationCount const at compile time ( #7583 )
2018-04-16 21:52:27 +02:00
hlaaf
38b2596ff9
Add none[T]() as alias to none(T) ( #7512 )
...
* Add none[T]() as alias to none(T)
* Add tests for none[T]
* this test shouldn't work anyway
2018-04-16 21:01:37 +02:00
Michał Zieliński
b2060acbc4
osproc: fix double close on POSIX ( #5724 )
...
Calling close() in some cases issued two close() syscalls to one FD, which is incorrect in multithreaded programs.
2018-04-16 20:02:26 +02:00
Dmitry Atamanov
412cd61dab
Fixes #7595 ( #7623 )
...
* Fixes #7595
* Add brackets
* Fix for treeRepr and lispRepr too
2018-04-16 19:37:08 +02:00
Timothee Cour
04df7f147c
update macros.nim: followup on pull #7598 ( #7619 )
...
@Araq @krux02
https://github.com/nim-lang/Nim/pull/7598 seemed inaccurate eg for NLineInfo there's `mNLineInfo` but no opcNLineInfo
2018-04-16 09:08:52 +02:00
Dominik Picheta
b750082925
Fix docs in json module after #7537
2018-04-15 23:55:54 +01:00
Federico Ceratto
93fafc8545
Add autovivification example ( #7537 )
...
* Add autovivification example
* Update json.nim
2018-04-16 00:02:02 +02:00
Oscar Nihlgård
02d6dd723d
Timeinterval optimization ( #7608 )
...
* TimeInterval optimization
* Fix typo in `$`(Duration)
2018-04-16 00:01:34 +02:00
Arne Döring
ed5b7cbac0
move eqIdent to vm.nim ( #7585 )
...
* Strutils comment changes.
* fix typo
2018-04-15 23:38:43 +02:00
Andreas Rumpf
c9f14ca9be
manual: remove the bind-once typedesc weirdness; replaced by how things should be done
2018-04-15 22:16:07 +02:00
Andreas Rumpf
2f8289919e
docutils: no Babel file
2018-04-15 22:16:07 +02:00
Andreas Rumpf
ed9c28484a
docutils: make ':test:' work without argument
2018-04-15 22:16:07 +02:00
Arne Döring
efae366857
rename SomeReal to SomeFloat ( #7617 )
...
* rename SomeReal to SomeFloat
* added changelog entry
2018-04-15 19:59:11 +02:00
treeform
b98cd3bf34
Fix cmpStrings in js mode ( #7604 )
2018-04-15 17:34:03 +02:00
Oscar Nihlgård
6795d9931b
Add recent times changes to changelog ( #7607 )
2018-04-15 17:25:39 +02:00
jcosborn
2478be3f21
add example to docs for getTypeInst and getTypeImpl ( #7206 )
...
* add example to docs for getTypeInst and getTypeImpl
* made examples use runnableExamples
* changed assert to doAssert
2018-04-15 13:51:16 +02:00
AdrianV
0ce28d15cc
Nim namespace for cpp ( #7453 )
...
- new option --usenamespace to generate nim cpp code in its own namespace Nim
- minor changes for compatibility with the new Embarcadero = Borland C++-Builder (bcc)
2018-04-15 13:43:01 +02:00
Andreas Rumpf
70c0ff1be2
manual: cleanup the documentation; document for-loop macros; ensure the examples compile
2018-04-15 11:56:18 +02:00
Andreas Rumpf
c08efb4c51
implements first version of for-loop macros
2018-04-15 01:07:28 +02:00
Andreas Rumpf
a30b52eb64
fixes #7610
2018-04-14 15:44:05 +02:00
Andreas Rumpf
8c09ffd36d
manual: many additions and improvements
2018-04-14 14:53:31 +02:00
Andreas Rumpf
7c879d9b0f
explicit effects for existsOrCreateDir
2018-04-14 13:57:27 +02:00
Andreas Rumpf
c6f15c53f4
merge the different manual/*.rst include files. Was too hard to find the corresponding sections otherwise. Hope it means the manual is more likely to be kept up to date.
2018-04-14 08:42:53 +02:00
RSDuck
3d1d163eff
fixes #7451 ( #7575 )
2018-04-14 08:33:36 +02:00
Andreas Rumpf
116e984a6b
remove deprecated timeToTimeInfo; fixes #3678
2018-04-14 00:59:32 +02:00
Andreas Rumpf
6ae9341d48
make JS tests green again
2018-04-14 00:54:15 +02:00
Andreas Rumpf
50d4224d41
fixes #6205
2018-04-14 00:40:24 +02:00
skilchen
34c1ca1dd0
make nativesockets.Hostent.addrlist readable for ipv4 af_inet addresses (see issue #7314 ) ( #7327 )
2018-04-13 23:49:23 +02:00
Andreas Rumpf
9e884c31dd
the new feature's name is hotCodeReloading
2018-04-13 23:48:56 +02:00
Andreas Rumpf
d7cc9016f3
fixes #4470
2018-04-13 23:41:31 +02:00
skilchen
a3cf1cff5b
make tools/nimweb.nim compileable with latest Nim ( #7602 )
2018-04-13 22:57:10 +02:00
zah
e3037a2f33
Support code hot reloading for JavaScript projects ( #7362 )
...
* Support code hot reloading for JavaScript projects
* Add some missing JavaScript symbols and APIs
* fix the Travis build
* (review changes) remove the js type from the standard library as it doesn't follow NEP-1
* more additions to the DOM module
* Follow NEP-1 in jsffi; spell 'hot code reloading' correctly
* introduce a jscore module
* Document jscore module.
* readded js type
* Remove the '$' operator that doesn't behave
2018-04-13 19:08:43 +02:00
Andreas Rumpf
1d1d6f39a3
make tests green again
2018-04-13 17:45:58 +02:00
Andreas Rumpf
47335aab41
introduce nkTupleConstr AST node for unary tuple construction; breaking change
2018-04-13 17:45:58 +02:00
zah
ab426faa22
Merge pull request #7599 from nim-lang/fix-typedesc-in-async
...
Fix some usages of typedesc in async procs
2018-04-13 17:33:05 +03:00
Arne Döring
55fe3d87a7
added comment to macros ( #7598 )
...
* added comment to macros
* Update macros.nim
2018-04-13 14:05:07 +02:00