Timothee Cour
ee6d56141c
fix #17911 rawProc for cpp ( #17912 )
2021-05-01 11:12:13 +02:00
Andreas Rumpf
fb86271556
system.nim cleanup some exported constants which should never have be… ( #17909 )
...
* system.nim cleanup some exported constants which should never have been exported
2021-05-01 11:10:40 +02:00
Timothee Cour
82996aee3f
misc fixes: remove forceConst (obsolete by static), add more runnableExamples to system ( #17896 )
...
* misc fixes
* add runnableExamples for compileOption
* add runnableExamples for runnableExamples
* move tconsteval => tconst
* cleanup
2021-05-01 07:26:52 +02:00
Gabriel Huber
34a09574ce
Document the difference between toFloat/toInt and type conversion ( #17894 )
2021-04-30 22:39:25 +02:00
flywind
68e522ecec
Remove confusing <//> ( #17830 )
2021-04-26 09:04:52 +02:00
Timothee Cour
4742e6e1fd
followup #16714 : add -d:nimLegacyUnarySlice + changelog ( #17794 )
2021-04-20 00:25:28 -07:00
Timothee Cour
ad67bcf379
fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice ( #16714 )
2021-04-19 19:02:52 -07:00
Clyybber
6de5aa1971
Rename = to =copy in stdlib ( #17781 )
2021-04-19 13:16:10 +02:00
Andreas Rumpf
7b6ab5109f
IC exposes typedesc implementation shenanigans ( #17759 )
...
* IC exposes typedesc implementation shenanigans; so I change system.default's definition to what it should have been to begin with
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-04-18 07:27:03 +02:00
shirleyquirk
c8b8cb8458
make cuchar alias uint8 instead of char ( #17738 )
2021-04-17 17:27:10 +02:00
Tanguy Cizain
363467fc00
Fix array's high & low return type for empty arrays ( #17705 )
...
* fix array.high/low return type
* Add test for empty array low return type
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-04-15 15:45:38 +02:00
Timothee Cour
ceadf54d76
iterable[T] ( #17196 )
...
* fix failing test toSeq in manual which now works
* changelog
* reject proc fn(a: iterable)
* add iterable to spec
* remove MCS/UFCS limitation that now works
2021-04-11 14:25:41 +02:00
Timothee Cour
28de32c8b2
document caveats of quit ( #17648 )
2021-04-05 12:19:17 -07:00
flywind
e2269f9216
[docs]fix #17473 ( #17565 )
...
* fix nim js cmp fails at CT
* Add `hasClosure` to `std/effecttraits`
* type
* Update changelog.md
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* fix #14011
* Delete ttypetraits.nim
* Apply suggestions from code review
* fix #17473
* Revert "fix #14011 "
This reverts commit 0eed97a84b .
* Update lib/system.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-03-29 14:39:49 +02:00
ee7
eb3ed44009
system: fix link in delete proc ( #17550 )
...
The `delete` proc had a "See also" link that linked to itself.
2021-03-28 12:44:16 +02:00
Timothee Cour
1590d14575
fix #17260 render \ properly in nim doc, rst2html ( #17315 )
2021-03-24 10:58:29 +01:00
Andreas Rumpf
6c1c8f51b3
IC: green tests ( #17311 )
...
* IC: renamed to_packed_ast module to ic module
* IC: don't store the --forceBuild flag, makes it easier to test
* IC: enable hello world test
* Codegen: refactorings for IC; changed the name mangling algorithm
* fixed the HCR regressions
* life is too short for HCR
* tconvexhull is now allowed to use deepCopy
* IC exposed a stdlib bug, required a refactoring
* codegen: code cleanups
* IC: even if a module is outdated, its dependencies might come from disk
* IC: progress
* IC: better name mangling, module IDs are not stable
* IC: another refactoring helping with --ic:on --gc:arc
* disable arraymancer on Windows for the time being
* disable arraymancer altogether
* IC: make basic test work with 'nim cpp'
* IC: progress on --ic:on --gc:arc
* wip; name mangling for type info
2021-03-19 16:53:38 +01:00
flywind
2e730f1452
rename channels to channels_builtin ( #17330 )
...
* improve test coverage for isolation
* a bit better
* rename channels to channels_builtin
2021-03-12 13:04:32 +01:00
flywind
5670b848cb
use .. warning:: ( #17226 )
...
* remove unnecessary when statement
* remove outdated codes
* use warnings
2021-03-04 11:34:55 +01:00
Timothee Cour
f561afae41
followup #17225 : simplify code after removing gc2, generational ( #17242 )
2021-03-03 13:37:42 +01:00
Timothee Cour
e417bd62f7
\r now renders as \r, not \c which was not standard ( #17244 )
2021-03-03 11:57:00 +01:00
flywind
a04c9d1f62
rename prepareStrMutation to prepareMutation ( #17235 )
...
* remove unnecessary when statement
* remove outdated codes
* rename prepareStrMutation to prepareMutation
2021-03-03 08:08:52 +08:00
flywind
dfa0a6b4a6
add runnableExamples for prepareStrMutation ( #17227 )
...
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-02 12:52:07 +01:00
Timothee Cour
6c5872c169
--nilseqs is now a deprecated noop (#17211 )
...
* --nilseqs is now a deprecated noop
* fix tests; fix: future => sugar
2021-03-01 20:59:43 +01:00
Andreas Rumpf
bb0c19f42c
fixes #17173 ( #17213 )
...
* fixes #17173
* add testcase (#17214 )
* Apply suggestions from code review
* fix for newruntime
* Apply suggestions from code review
* Update lib/system.nim
* Update lib/system.nim
* Update lib/system.nim
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2021-03-01 20:58:12 +01:00
Timothee Cour
0cb02fbbee
add overload add(a: var string, b: openArray[char]) ( #15951 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-03-01 07:51:12 -08:00
Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
Timothee Cour
4c568734f4
system: more runnableExamples + doc improvements ( #17075 )
2021-02-17 14:33:02 -08:00
Timothee Cour
b9994925f5
remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ( #16918 )
...
* nimNoArrayToCstringConversion deadcode
* nimbabel deadcode
* nimHasalignOf deadcode
* nimvarargstyped deadcode
* nimhygiene deadcode
* nimNewTypedesc deadcode
* nimlocks deadcode
* nimHasCppDefine deadcode
* nimHasRunnableExamples deadcode
* nimHasNilChecks deadcode
* nimSymKind deadcode
* minor macros refactoring
* nimVmEqIdent deadcode
* nimNoNil deadcode
* nimNoZeroTerminator deadcode
* nimHasSymOwnerInMacro deadcode
* nimVmExportFixed deadcode
* nimNewRuntime deadcode
* nimAshr deadcode
* nimUncheckedArrayTyp deadcode
* nimHasTypeof deadcode
* nimErrorProcCanHaveBody deadcode
* nimHasHotCodeReloading deadcode
* nimHasSignatureHashInMacro deadcode
* nimHasDefault deadcode
* nimMacrosSizealignof deadcode
2021-02-17 09:32:36 +01:00
hlaaftana
81533a0014
[backport:1.4] JS cstring null fixes ( #16979 )
...
* [backport:1.4] JS cstring null fixes
* fix JS move string
* make it look cleaner
2021-02-11 17:04:32 +01:00
Juan Carlos
68ef0c6c5b
Deprecate any ( #16920 )
2021-02-08 19:21:17 -08:00
Timothee Cour
910720b0d4
document typeof ( #16965 )
2021-02-08 13:45:06 +01:00
flywind
d447c0fe3f
use typeof instead type ( #16962 )
2021-02-08 09:46:07 +01:00
Timothee Cour
3eebbb234d
fix of procs + runnableExamples ( #16932 )
2021-02-05 16:32:10 +01:00
Timothee Cour
6dc7ece36a
document default ( #16942 )
2021-02-05 16:28:21 +01:00
n5m
f87b9866af
link compile-time options together in docs ( #16879 )
...
* link similar compiler option proc together
* fixup links
* fix formatting and links
* example formatting
* drop declared
* link to compilesettings
* only link define pragmas once
* drop another declared
* backlink to compileOptions from compilesettings
* remove newline
2021-02-02 09:44:21 +01:00
Miran
25c75752d0
remove quotation marks around imports - fixes links in the docs ( #16888 )
2021-02-01 06:50:23 +01:00
Timothee Cour
6e267d28b3
remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs ( #16861 )
...
* cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors
* simplify nimNoNilSeqs2
* simplify nimNoNilSeqs
* fixup
2021-01-29 14:30:24 +01:00
flywind
4e1e231e29
fix floats slice ( #16853 )
...
* see whether it breaks
* fix
* fix
* minor
* fix
* add enum
* use Ordinal types
* fix tests
* fix
* another style
* fix remainning cases
2021-01-29 12:26:36 +01:00
Timothee Cour
18b983d7e3
addQuitProc => addExitProc ( #16765 )
2021-01-22 19:51:11 +01:00
flywind
5ed6a94d8f
promote math.isNaN ( #16734 )
2021-01-15 22:19:17 -08:00
Juan Carlos
78a99587a4
Deprecate TaintedString ( #15423 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-01-15 18:56:38 -08:00
Timothee Cour
f6c2450cdb
fix #16555 , fixes #16405 : len, high honors '\0' for cstring in vm ( #16610 )
2021-01-11 10:16:20 +01:00
flywind
c80261bc00
fix #12311 ( #16578 )
2021-01-04 10:24:52 +01:00
flywind
76f92265d9
fix #8412 ( #16563 )
...
* Revert "Make config processing order test more robust"
This reverts commit cf714c129f .
* enable tmath tests
* fix #8412
* Revert "enable tmath tests"
This reverts commit 293b63f57e .
* add tests
* fix
2021-01-03 11:05:59 +01:00
flywind
9d4a1f9554
fix #16494 ( #16513 )
...
* fix #16494
* fix
* fix
* fix
* fix
* fix
* fix performance
* add comments
* improve performance
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update tests/stdlib/tmath_misc.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Update tests/stdlib/tmath_misc.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-01-01 10:59:19 +01:00
Antonis Geralis
d5a3c2c2da
Added cmpMem export ( #16484 )
...
* added cmpMem export
* updates
* fix test
* Tiny changelog change
* Add a dot.
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-29 13:27:08 +01:00
flywind
3f9a2ebea5
fix nim js cmp fails at CT ( #16473 )
2020-12-27 10:13:57 +01:00
flywind
7256afb00d
mark abs as inline ( #16432 )
2020-12-22 11:18:13 +01:00
Timothee Cour
df17cf5e9e
misc cleanups ( #16383 )
2020-12-18 08:53:43 +01:00