summary refs log tree commit diff stats
path: root/lib/system/repr_v2.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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