Clyybber
ed1d41c51e
Small ast.nim cleanup ( #12156 )
...
* Remove sonsLen
* Use Indexable
2019-09-09 11:54:15 +02:00
Araq
18135cc194
proper bugfix
2019-09-08 13:08:41 +02:00
Araq
8362d92e47
fixes #12091
2019-09-08 13:08:41 +02:00
Araq
e765687646
Merge branch 'devel' into uint-range-checks
2019-09-02 10:27:35 +02:00
Araq
ad82e65387
gc:destructors progress
2019-09-01 23:28:26 +02:00
Andreas Rumpf
5f7a6aff06
fixes #11941 ( #12079 )
2019-08-29 00:35:05 +02:00
Andreas Rumpf
21fc8b4d4d
refactor sizealignoffset ( #12077 )
...
* small refactoring
* refactor computeObjectOffsetFoldFunction with AccumObject
* refactor packed object offstes fold function
* refactor compute union object offsets fold function
* merge normal/packed object offset fold function
* compiletime offsetof in c++ inheritance objects
* enable c++ inheritance offsetof tests
* correct alignment for big sets/enums on weird 32bit platforms
* uncomputedSize -> unknownSize
* workaround for travis
* fixes win32 alignment problems
2019-08-28 19:36:29 +02:00
Oscar Nihlgård
def6234903
Fix several float range issues
2019-08-27 14:45:19 +02:00
Arne Döring
ab8241ad42
minor stuff
2019-08-27 12:28:18 +02:00
Andreas Rumpf
b044523c5a
fixes 9195 ( #12055 )
2019-08-27 10:07:42 +02:00
Andreas Rumpf
97d77bf37e
semtypes.nim: more refactorings for liftParamType
2019-08-26 23:30:35 +02:00
Andreas Rumpf
0c41fd0f50
semtypes.nim: little refactoring for liftParamType
2019-08-26 23:30:35 +02:00
Arne Döring
a562de2d91
squashed and merged with devel
2019-08-21 19:24:36 +02:00
Andreas Rumpf
81ddc67785
[refactoring] compiler: simplified markUsed
2019-08-08 22:43:58 +02:00
Arne Döring
afbcd1b330
int128 on firstOrd, lastOrd and lengthOrd ( #11701 )
...
* fixes #11847
2019-08-07 15:53:16 +02:00
Arne Döring
ce148e71ef
disallow static in return type ( #9686 ) [nobackport]
2019-08-06 01:26:53 +02:00
Andreas Rumpf
42e83ac24c
fixes #11817 ( #11889 )
2019-08-05 16:48:26 +02:00
Andrii Riabushenko
4c73139316
revert changes
2019-07-25 23:18:20 +01:00
Andrii Riabushenko
d7bc4e43a2
fixes #11826
2019-07-25 23:02:04 +01:00
Araq
4137a4dbf3
[feature] detect unused imports
2019-07-17 22:36:23 +02:00
Andreas Rumpf
2895ad70c8
fixes tcompiletimerange [bugfix] ( #11720 )
2019-07-12 15:37:54 +02:00
Araq
73cc029fec
fixes linter regressions
2019-07-10 18:59:27 +02: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
Araq
7c62de0cb7
better error message for invalid types
2019-07-09 11:38:00 +02:00
Arne Döring
7d5d9f7703
introduce internal Int128 type, use it to fix case stmt checks ( #11652 )
...
* initial version of int128
* use int128 in case stmt
* fixes #11552
2019-07-05 22:45:32 +02:00
Andreas Rumpf
5f515410af
newruntime for async ( #11650 )
...
* fixes overloading resolution for passing owned(Future[string]) to Future[T]
* WIP: make --newruntime work with .async
* memtracker: make it compile again
* make Nimble compile again
2019-07-05 01:42:17 +02:00
Arne Döring
cb45527e37
pass typedesc as NimNode to macros ( #11400 )
...
* change typedesc's design in macros
* Manual and changelog entry.
* add link to RFC
2019-06-05 09:17:04 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Jasper Jenkins
90ed904c4d
range/case fixes ( #11264 )
2019-05-16 16:36:40 +02:00
Jasper Jenkins
07eca7decd
Fixes #4140 ( #11238 )
...
* correct error
* cleaner
* fix line info
2019-05-13 07:47:30 +01:00
Arne Döring
b92fd30282
rename tyExpr/tyStmt to tyUntyped/tyTyped ( #11227 )
2019-05-11 10:11:08 +02:00
Miran
e54546bcff
fixes #7569 , all credit to @vincentvidal ( #11213 )
2019-05-10 08:48:12 +02:00
Clyybber
cc28eef38e
Replace countup(x, y) with x .. y
2019-05-07 12:37:28 +02:00
Clyybber
f18b3af9d4
Replace countup(x, y-1) with x ..< y
2019-05-07 12:32:05 +02:00
Clyybber
9ffab44c35
Remove mStaticTy and mTypeTy
2019-05-07 11:23:03 +02:00
Clyybber
4fd79f5b47
Fix #11058 ( #11172 )
2019-05-05 08:26:22 +02:00
Jasper Jenkins
6e4ea40475
empty container param error msg ( #11158 )
2019-05-04 23:28:09 +02:00
genotrance
45759b5e90
Fix 105, few fixes for 101 ( #11148 )
2019-05-04 22:38:52 +02:00
Arne Döring
a432aedb54
Generic tuple recursion fix ( #11115 )
...
* fixes #1145
* unify error messages
2019-04-28 10:11:41 +02:00
Araq
28b4db4470
be consistent, strings have destructors for --gc:destructors
2019-04-10 11:04:38 +02:00
Araq
cce8d3da27
fixes #10934
2019-03-31 19:59:17 +02:00
Andreas Rumpf
bf592c4e94
more destructor based changes ( #10885 )
...
* mark user defined destructors with sfOverriden to simplify the logic
* refactoring in preparation to merge liftings and generic instantiations for destructors
* ast: introduce nkHiddenTryStmt for destructor generation in order to be able to optimize better the code later on
* renamed 'patterns' switch to 'trmacros' as it was totally misleading before
* destructors: introduce tfCheckedForDestructor flag in preparation of strict =destroy checking
* test for invalid/too late destructor introductions
* liftdestructors: make code robust for nimsuggest
* --newruntime works for hello world again
* newruntime: code generation for closures
2019-03-23 00:12:05 +01:00
Arne Döring
97c3b113a5
Size ptr tuple ( #10846 )
...
* fixes #10117
* Add support for recursive tuples
* detect in generics
2019-03-18 11:37:09 +01:00
Andreas Rumpf
2ab6b2c657
--newruntime: work in progress
2019-03-14 07:59:44 +01:00
Andreas Rumpf
4be36d77f6
introduce tfHasOwned for fast must-move checkings; removed tfAcyclic as the GC has ignored this hint for quite some time now
2019-03-05 19:58:54 +01:00
Arne Döring
30ab7e6bdd
fixes #10678 ( #10681 )
2019-02-23 10:58:40 +01:00
Andreas Rumpf
ea409fb15a
first steps in implementing 'owned' pointers; undocumented, do not use
2019-02-23 08:44:08 +01:00
Andreas Rumpf
721bf7188b
code cleanup: there is no tyOptRef
2019-02-22 19:42:11 +01:00
Araq
6c10d331db
gc:destructors: slightly more stuff compiles
2019-02-20 14:29:18 +01:00
Araq
f31d1fa98b
fixes #10195
2019-02-19 16:25:57 +01:00