summary refs log tree commit diff stats
path: root/lib/system/repr_v2.nim
Commit message (Collapse)AuthorAgeFilesLines
* support `UncheckedArray[T]` in repr_v2.nim (#20816)Derek 呆2022-11-111-1/+4
|
* fixes #19162; enable `strictEffects` for v2 (#19380)ringabout2022-10-151-8/+8
| | | | | | | | | | | | | | | | | | | * enable stricteffects * add gcsafe * fix tests * use func * fixes pegs tests * explicitly mark repr related procs with noSideEffect * add nimLegacyEffects * change URL * fixes docopt * add `raises: []` to repr * fixes weave * fixes nimyaml * fixes glob * fixes parsetoml * Apply suggestions from code review * Update testament/important_packages.nim * add legacy:laxEffects
* Revert "fixes #20155; repr range with distinct types is broken with ORC" ↵Clay Sweetser2022-09-111-6/+1
| | | | | | | (#20334) Revert "fixes #20155; repr range with distinct types is broken with ORC (#20158)" This reverts commit 37b3f62eef16b0e7cb89e18f9ddc1fb96e17fb1b.
* fixes #20155; repr range with distinct types is broken with ORC (#20158)ringabout2022-09-111-1/+6
| | | | | * fixes #20155; repr range with distinct types is broken with ORC * skipRanges
* move formatfloat out of system (#20195)ringabout2022-08-241-0/+3
| | | | | | | | | | | | | | | * move formatfloat out of system * fixes doc * Update changelog.md * careless * fixes * deprecate system/formatfloat * better handling
* improvements to `addInt` and `$` for integer types (#18592)Timothee Cour2021-08-191-9/+8
| | | | | | | | * improvements to $(SomeInteger) and addInt * remove mIntToStr, mInt64ToStr * improvements * fix tests/pragmas/tinjectstmt.nim; the diff is harmless, cgen code is identical with -d:danger or debug mode * rm tests/system/tstrmantle.nim * revert compiler/jsgen.nim for -d:nimVersion140
* properly fix #10053 ; `FieldDefect` msg now shows discriminant value + ↵Timothee Cour2021-08-131-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lineinfo, in all backends (c,vm,js) (#11955) * fix #10053 FieldError for vm * fixup * FieldError now also shows runtime value of discriminant * fix field error reporting in vm * also report culprit line info in err msg * fix errors for newruntime 2 * fix for js * fixup * PRTEMP4 * works * works * works perfect * refactor * std/private/repr_impl * suppport --gc:arc * cleanup * refactor * simplify * simplify * simplify * fixup * move out compiler.vmgen.genCustom * fixup * fixup * add tests * revert compiler/debugutils.nim * simplify reprDiscriminant * fixup * lib/std/private/repr_impl.nim -> lib/system/repr_impl.nim * try to fix D20210812T165220 * honor --declaredlocs * control toFileLineCol via --declaredlocs
* Add optional recursive arg to distinctBase (v2) (#18659)Timothee Cour2021-08-091-1/+1
| | | | | | * Add optional recursive arg to distinctBase * Add docs and examples Co-authored-by: ALANVF <alan.invents@gmail.com>
* make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531)Timothee Cour2021-07-201-3/+3
| | | | | | * compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string
* fix #17812 (repr fails to compile with ARC/ORC) (#17816)flywind2021-04-221-1/+1
|
* repr_v2 improvements (#14992)Clyybber2020-07-151-10/+28
| | | | | | | * Support proc in arc repr * Typo * Improve repr for strings and chars
* fix repr(char) example assert (#14437)hlaaftana2020-05-231-1/+1
|
* Small improvements for string and char repr with gc:arc (#14400)Clyybber2020-05-201-6/+8
| | | | | * Small improvements for string and char repr with gc:arc * Fix test
* Fix #14270 and add testcases (#14276)Clyybber2020-05-081-2/+6
|
* Fix #13872 (#13898)Clyybber2020-04-061-0/+5
|
* doc: fix comment for repr*(x: char): string (#13873)Hiroki Noda2020-04-051-1/+1
| | | replace `$` with `repr`.
* fix #13731, ambiguous repr of pointers (#13732)Miran2020-03-231-6/+2
|
* Repr v2 progress (#13268)cooldome2020-01-281-71/+59
| | | | | | | | | | * progress on repr_v2 * repr progress * add ref objects with distrinct * fix failing tests
* more arc features (#13098)Andreas Rumpf2020-01-101-0/+170
* config update * ARC now supports 'repr' and 'new' with finalizers is supported