| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* fix noDecl => nodecl
* address comment
* disable flaky tests/stdlib/thttpclient.nim on freebsd
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* improve examples in manual
* Update doc/manual.rst
Co-authored-by: Clyybber <darkmine956@gmail.com>
* Update tests/cpp/ttemplatetype.nim
Co-authored-by: Clyybber <darkmine956@gmail.com>
Co-authored-by: Clyybber <darkmine956@gmail.com>
|
|
|
|
|
|
|
|
|
| |
* remove `out T` from docs
see https://github.com/nim-lang/Nim/issues/16131
* remove `out T` in title
* remove entire paragraph
|
|
|
|
|
| |
* Fix broken links in docs
* Fix rand HSlice links
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
allowed (#15878)
* follow #8463 #14157 and document cstring literals
* Update doc/manual.rst
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make `requiresInit` pragma to work for distinct types in addition to
objects. Tagging of distinct types with `requiresInit` pragma was
already supported, but its impact wasn't applied. Now its behavior when
applied on distinct types is as follows.
Given the following distinct type definitions:
```nim
type
DistinctObject {.requiresInit, borrow: `.`.} = distinct MyObject
DistinctString {.requiresInit.} = distinct string
```
The following code blocks will fail to compile:
```nim
var foo: DistinctFoo
foo.x = "test"
doAssert foo.x == "test"
```
```nim
var s: DistinctString
s = "test"
doAssert s == "test"
```
But these ones will compile successfully:
```nim
let foo = DistinctFoo(Foo(x: "test"))
doAssert foo.x == "test"
```
```nim
let s = "test"
doAssert s == "test"
```
|
|
|
| |
manual, the tutorial, and the `tbintree` test.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add documentation that discardable pragma cannot use on template
* Update doc/manual.rst
Co-authored-by: Euan <euantorano@users.noreply.github.com>
* Update doc/manual.rst
Co-authored-by: Euan <euantorano@users.noreply.github.com>
Co-authored-by: Euan <euantorano@users.noreply.github.com>
|
| |
|
|
|
|
|
| |
* implements https://github.com/nim-lang/RFCs/issues/260
* added a test case
|
|
|
|
|
|
|
|
|
| |
* implements https://github.com/nim-lang/RFCs/issues/258
* don't be too strict with custom pragma blocks
* cast pragmas: documentation
* added most missing inference query procs to effecttraits.nim
|
|
|
|
|
|
|
|
|
|
|
| |
* spec for view types
* spec additions
* refactoring; there are two different kinds of views
* refactorings and spec additions
* enforce that view types are initialized
* enforce borrowing from the first formal parameter
* enforce lifetimes for borrowing of locals
* typo in the manual
* clarify in the implementation what a borrow operation really is
|
|
|
|
|
|
|
| |
* add `enumerate` macro
* address the comments
* put `enumerate` in its own module
|
|
|
|
|
| |
* docs improvement
* minor
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* Fix #5691
* Cleanup and thoughts
* Use scope approach
* Seperate defined/declared/declaredInScope magics
* Fix declaredInScope
* Update spec accordingly
|
|
|
| |
Co-authored-by: Ico Doornekamp <git@zevv.nl>
|
|
|
|
|
|
|
| |
* Minor improvements to typecast section of manual
* Clarification to casting w/ concrete types
* Added less ambiguous language
|
|
|
|
|
|
|
|
|
| |
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* I don't care about observable stores
* enforce explicit initializations
* cleaner code for the stdlib
* stdlib: use explicit initializations
* make tests green
* algorithm.nim: set result explicitly
* remove out parameters and bring the PR into a mergable state
* updated the changelog
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Removed phrase "However, this is no real restriction because
Nim's syntax is flexible enough anyway." from the manual - I find it
very subjective, and I sometimes *do* find myself restricted by Nim's
syntax when writing DSLs
|
| |
|
| |
|
|
|
|
| |
* Add thiscall calling convention, mostly for hooking purpose
* add changelog and documentation
|
| |
|
| |
|
|
|
|
|
| |
* refs #14369 improve docs for importcpp exceptions
* address comments
|
|
|
|
| |
for imported exceptions (#14392)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allow let to not have value when using importc
This allows a let statement with the `{.importc.}` pragma to not be
initialised with a value. This allows us to declare C constants as Nim
lets without putting the value in the Nim code (which can lead to
errors, and requires us to go looking for the value). Fixes #14253
* Proper fix and documentation + changelog entry
* Improve testcase with one from timotheecour
* Add test to verify it working with macros
|
|
|
|
|
| |
`if expressions` are similar to ternary operators in other languages.
In order to make this easier to find in the manual, I've added a
sentence about it.
|
|
|
|
|
|
|
|
|
| |
* do not track 'raise Defect' in the .raises: [] clause anymore
* --panics:on maps 'raise Defect' to an unrecoverable fatal error
* make tests green again
* update the documentation too
|
| |
|
| |
|