| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
(#9332)
* fixes #8518; refs #9301; correctly render AST in doAssert condition
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo
Need to check in `typeinfo` for nil of the underlying pointer.
In marshal don't have to check for nil of seq anymore.
* remove reference to string, sequence in `isNil` doc string
|
|
|
|
|
|
|
|
|
|
|
| |
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]`
for some unchecked type already works but A) `UncheckedArray` seems to be
the intended future way for this kind of access, and B) essentially all use
cases will have a `ptr` for that kind of array source and this call signature
lets callers drop the trailing `[]` corresponding to that `ptr` deref.
This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 .
* Add a test for toOpenArray() for UncheckedArray[T]s.
|
|
|
|
|
|
| |
* Proposed solution for issue #8919
* count sub/subs must be non-empty
|
|
|
|
|
|
|
|
|
|
| |
* testament: move to root dir (it's not a test)
* osproc: fix process index passed to afterRunEvent for parallel runs
it was passing the index of the process, not index of all commands
* testament: complete file move
|
|
|
|
|
|
|
| |
By using `write` instead of `rawWrite` we'd end up asking the compiler
to generate the GC dynlib _while_ we were already generating another
dynlib!
Fixes #9123
|
|
|
|
|
|
|
|
| |
* Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs.
* Add tests for sort, sorted, and isSorted procs from algorithm module.
* Merge sort tests into tsortcall.nim, remove tsort.nim.
* Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs.
* Add tests for sort, sorted, and isSorted procs from algorithm module.
* Merge sort tests into tsortcall.nim, remove tsort.nim.
|
|
|
|
|
|
|
|
| |
- Go's write barriers are now plugged-in in all the relevant points
- "gcGo" is correctly classified by usesWriteBarrier()
- some gogc structures and functions now use golib wrappers to keep GCC
version-specific conditions out of the compiler/stdlib code
- we no longer allow mixing the C malloc with Go's
- fix a problem with string copying
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Fix macro expansion in expandMacros
Running a semanticized node trough the semantic pass was a bad idea.
Fixes #7723
* Simpler smaller implementation
|
|
|
|
|
|
| |
* better docs for `tables` module
* lower case for the first sentence in docs
|
|
|
|
|
|
|
|
|
|
|
|
| |
* better docs for `algorithm` module
* address the comments
* small first letter in the first sentence
* last argument is reverted to be `int`
* `rotateLeft` keeps `discardable` pragma, as discussed on IRC
* another small correction
|
| |
|
| |
|
|
|
|
|
|
| |
* Try/Catch support for native JS exceptions
* Better tests
|
|
|
|
|
|
| |
* Fixes #8994. FutureStream read procedure data loss no longer occurs.
* Optimises the fix for #8994.
|
| |
|
|
|
| |
Modify comments for readChar and peekChar to the same as the comment for them in the source code.
|
| |
|
|
|
| |
Fixes #9201
|
|
|
|
|
| |
removeFile() behavior should now be consistant between Windows and POSIX
Fixes #9200
|
|
|
|
|
|
| |
Fixes the 'koch docs' build failure.
Ref:
https://github.com/nim-lang/Nim/commit/b90b45b01bba1f3fc241a96abd4ae5c8c314bb92
|
|
|
|
|
|
| |
* Update os.nim
* Update os.nim
|
|
|
|
|
|
| |
* Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. Fixes 8684.
* Change signatures to 'func'. Improve overload sort doc comments
|
|
|
|
| |
marquee, picture, slot, summary (#9252)
|
|
|
|
|
|
|
|
|
| |
As #9239 points out the old implementation had some serious flaws.
The new implementation is a port of the MIT-licensed one used by
Chromium OS and has been tested against the FIPS-provided vectors and by
generating huge files like the ones mentioned in the issue above.
While I tried my best to take into account the existence of BE machines
the code has only been tested on a LE one.
|
| |
|
| |
|
| |
|
|\
| |
| | |
Use runnableExamples for nre example code where possible
|
| | |
|
| |
| |
| |
| |
| |
| | |
* Update macros.nim
* Update macros.nim
|
| | |
|
| |
| |
| |
| |
| |
| | |
* [docs/json]: expands existing examples + shows {} operator in action
* adds import stmt and fixes butchered syntax in json examples
|
| |
| |
| |
| | |
know nullptr
|
| | |
|
|\|
| |
| | |
Fix option documentation in nre (fixes #9053)
|
| | |
|
|\ \ |
|
| | | |
|
| |\ \
| | | |
| | | | |
Fix #9111; error when parsing to aliased type field
|
| | | | |
|