metagn
97d819a251
add bit type overloads of $ and repr ( #24865 )
...
fixes #24864
2025-04-12 08:37:36 +02:00
ringabout
8f4bfda5f4
fixes some strictdefs warnings ( #24502 )
2024-12-04 18:28:13 +08:00
Andrey Makarov
a660c17d30
Markdown code blocks migration part 8 ( #22478 )
2023-08-15 06:27:36 +02:00
ringabout
b6bfe38ff5
move formatfloat out of system ( #20195 )
...
* move formatfloat out of system
* fixes doc
* Update changelog.md
* careless
* fixes
* deprecate system/formatfloat
* better handling
2022-08-24 13:38:30 +02:00
metagn
b8dc58d884
test removing dollar for objects out of system ( #20242 )
...
* test removing dollar for objects out of system
* test & fixes
* fix bootstrap
* use nimPreviewSlimSystem, test stdlib category
* fix test
2022-08-24 09:44:16 +02:00
Timothee Cour
394f4ac7bb
improvements to addInt and $ for integer types ( #18592 )
...
* 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
2021-08-19 11:33:52 +02:00
Timothee Cour
cf0cf32d27
make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400 , etc ( #18531 )
...
* 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
2021-07-20 22:13:52 +02:00
Clyybber
808db3b284
Fix unused warning for $ on empty object ( #18381 )
2021-06-28 22:01:06 +02:00
Clyybber
6e74fecb42
Simplify addInt, remove digits10 ( #18356 )
...
* Simplify addInt, remove digits10
Co-authored-by: Charles Blake <charlechaud@gmail.com >
* Fix bootstrapping
* Add noInit to tmp array
* noInit -> noinit
Co-authored-by: Charles Blake <charlechaud@gmail.com >
2021-06-28 15:00:14 +02:00
Timothee Cour
5badeea170
followup #18318 : simplify dollarImpl and add a test ( #18330 )
2021-06-22 21:42:39 -07:00
flywind
9a81e91fa5
merge similar procs regarding digits ( #18318 )
2021-06-22 17:02:32 +02:00
Andreas Rumpf
daaa40973c
added float32 schubfach algorithm; wip ( #18155 )
...
* added float32 schubfach algorithm; wip
* fixes #18418
2021-06-03 12:09:40 +02:00
Danil Yarantsev
ac8166ab3d
Replace double backticks with single backticks - Part 1 out of ~6 ( #17205 )
2021-02-28 23:08:12 -08:00
flywind
cd274a5ac9
fix stringify unsigned integer in JS and JS VM ( #17086 )
...
* fix js unsigned integer
* better
2021-02-18 20:13:52 +01:00
Timothee Cour
31bb67a309
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes ( #16764 )
2021-02-17 19:30:09 +01:00
flywind
5f5a8aa5c6
remove unused warning ( #16809 )
2021-01-24 17:14:21 -08:00
Timothee Cour
3cbe8d2c53
$(uint|uint64) now works with nimscript ( #15644 )
...
* $(uint|uint64) now works with nimscript
* fixup
2020-10-20 14:26:37 +02:00
hlaaftana
fbc97e712a
move since from inclrtl to std/private/since ( #14188 )
...
* move since from inclrtl to std/private/since
* move since import in system below for HCR
2020-05-02 23:51:59 +02:00
Timothee Cour
a3a317b76d
$ now works for unsigned intergers with nim js (#14122 )
...
* $(unsigned) now works for js
* move NimMajor+friends closer to NimVersion according as per reviewer feedback
2020-04-27 19:15:17 +02:00
hlaaftana
b2141fc2a1
changed type() to typeof() in docs and error messages ( #14084 )
2020-04-24 09:22:12 +02:00
Araq
17f222613a
refactor system.$ for objects a little; refs #13398
2020-04-20 14:44:54 +02:00
hlaaftana
f46803b225
Fix unused warning for $ for empty tuple/objects ( #13991 )
2020-04-18 17:41:03 +02:00
Timothee Cour
c0a2e2ed92
replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple in dollars.nim ( #13347 )
...
* replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple
* fix for bootstrap
2020-02-07 13:27:28 +01:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Miran
84d3f3d448
move system.dollars in a separate file ( #10829 )
2019-03-13 15:59:09 +01:00