Arne Döring
6e01be34ef
fixes #11903 ( #11908 )
2019-08-31 19:32:59 +02:00
Andreas Rumpf
326a333c8b
Merge pull request #12099 from cooldome/destructor_too_late
...
fixes #12092
2019-08-31 19:25:19 +02:00
Andreas Rumpf
15213028b7
Return typeof(nil) ( #12100 )
...
* Allow typeof(nil) as a return type
* $typeof(nil) is now "typeof(nil)", not "nil"
2019-08-31 19:24:44 +02:00
cooldome
2b565aad89
Support iterators returning lent T ( #11938 )
...
* lent iterators
* rebase tests
* update changelog
* fix comments, more tests
2019-08-31 19:23:54 +02:00
Albert Safin
a6428657e9
$typeof(nil) is now "typeof(nil)", not "nil"
2019-08-31 10:16:26 +00:00
Albert Safin
efe1bed82e
Allow typeof(nil) as a return type
2019-08-31 10:16:26 +00:00
Andrii Riabushenko
a388c35741
support forward declared destructors
2019-08-31 09:56:39 +01:00
Andrii Riabushenko
a055f628f4
fixes #12092
2019-08-31 09:49:47 +01:00
Timothee Cour
9ae0dd611f
typeToString can now show (recursively) resolved type aliases; fixes #8569 #8083 #8570 ( #11678 )
...
* nested typeToString
* typeToString: preferResolved
* add test
* fix test
* preferMixed
* fix tests
2019-08-31 08:26:45 +02:00
Clyybber
f9600b7207
Remove ENDB ( #12095 )
2019-08-31 07:44:53 +02:00
Andreas Rumpf
82d5e773e3
make testament a tool we ship with Nim; fixes #12084 ( #12088 )
...
* make testament a tool we ship with Nim; fixes #12084
* moved config to fit
* adapt testament tests to use the testament binary
2019-08-30 15:43:07 +02:00
Clyybber
029dcc6259
fix #12037 ( #12089 )
2019-08-30 06:41:26 +02:00
Andreas Rumpf
2a3b056314
fixes #12042 ( #12083 )
...
* fixes #12042
* make tests green again
2019-08-29 19:09:54 +02:00
Araq
d0e5bd2305
fixes a critical type checking regression
2019-08-29 12:10:31 +02:00
Andreas Rumpf
9203d3a982
fixes 5870 ( #11704 )
...
* fixes #5870
* make tclosure test green again
* this check is correct but breaks some Nimble packages
2019-08-29 07:49:58 +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
Jacek Sieka
42d2e68bca
only store finally block in exception stack ( #11876 )
2019-08-28 12:08:54 +02:00
cooldome
c9f49cbc0a
lift destructor for openarray ( #12073 )
...
* destroy for sink openarray
2019-08-28 12:07:46 +02:00
Clyybber
20dec10722
Refactored injectdestructors.nim ( #11926 )
...
One improvement over #devel is visible in the transformation of getEnv. With this approach we move to result whenever possible.
2019-08-28 00:02:48 +02:00
Andreas Rumpf
eaebbfa785
Fix several float range issues (supersedes #11905 ) ( #12067 )
...
* Fix several float range issues
* address the comments
2019-08-27 23:19:41 +02:00
Arne Döring
d564130a3b
Fix to int to biggest int ( #12066 )
...
* fix to(Biggest)Int
* kill toFloat magics as well
2019-08-27 23:18:46 +02:00
Andreas Rumpf
00d46ca1c0
fixes #12024 ( #12065 )
2019-08-27 20:05:40 +02:00
Andreas Rumpf
114da04cbb
fixes #12029 ; finish the 'unused import' feature ( #12064 )
2019-08-27 19:18:56 +02:00
Andreas Rumpf
8df745a42e
fixes #12056 ( #12063 )
2019-08-27 16:15:37 +02:00
narimiran
329e169e96
address the comments
2019-08-27 14:49:32 +02:00
Oscar Nihlgård
def6234903
Fix several float range issues
2019-08-27 14:45:19 +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
ae9bb4474b
fixes #12033 ( #12039 )
2019-08-26 20:14:21 +02:00
Andreas Rumpf
931ee0ca82
fixes #7258 ( #12054 )
2019-08-26 20:12:22 +02:00
Andreas Rumpf
ce7f29e8e6
fixes #11833 ( #12018 )
2019-08-24 06:25:47 +02:00
Viktor Kirilov
f2e8c39e85
- adding _actual as a suffix only for calls to an actual proc and not through a global function pointer - fixes https://github.com/nim-lang/Nim/issues/11996 ( #12007 )
...
- adding forward declarations for reloadable functions within a module - fix compilation errors when 2 such functions reference each other - fixes https://github.com/nim-lang/Nim/issues/11608
- preserve permissions of copied executable binaries
2019-08-23 22:50:34 +02:00
Andreas Rumpf
c3c5839329
Add build support for FreeBSD/PowerPC64 ( #12011 )
...
* Add build support for FreeBSD PowerPC64
* Add build support for FreeBSD PowerPC64
* Add build support for FreeBSD PowerPC64
2019-08-23 18:59:52 +02:00
Andreas Rumpf
fbb2763204
fixes #11958 ( #12013 )
2019-08-23 18:58:55 +02:00
Andreas Rumpf
b07694cd90
new gensym handling ( #11985 )
...
* new .gensym implementation
* make astspec test green again
* introduce a --useVersion switch to group compatibility switches
* fixes #10180
* fixes #11494
* fixes #11483
* object constructor fields and named parameters are also not gensym'ed
* disabled broken package
2019-08-23 16:15:02 +02:00
lenoil98
2212a90458
Add build support for FreeBSD PowerPC64
2019-08-23 07:56:56 -04:00
Andreas Rumpf
085fbcea6f
fixes #10854
2019-08-22 18:57:41 +02:00
Timothee Cour
2b2efe3dbe
fix compiletimeFFI ( #11991 )
2019-08-21 09:28:16 +02:00
Oscar Nihlgård
4264e9576d
Consider range type of runtime discrim [feature] ( #11432 )
2019-08-20 17:39:49 +02:00
Andreas Rumpf
d00c8febee
Nimpretty: fix #11937 ( #11978 )
...
* cosmetic improvements
* remove unused imports
* make 'openPars' and 'closedPars' more readable
* nimpretty: fix #11937 (wrong indentation)
2019-08-20 16:03:04 +02:00
Araq
b1b0960c36
fixes #11972
2019-08-20 15:47:04 +02:00
Miran
75baaa5e25
nim check, fix #11927 , no more empty strings ( #11979 )
2019-08-19 22:25:21 +02:00
narimiran
ceb742351a
nimpretty: fix #11937 (wrong indentation)
2019-08-19 13:35:10 +02:00
narimiran
cf4390a24a
cosmetic improvements
...
* remove unused imports
* make 'openPars' and 'closedPars' more readable
2019-08-19 13:29:45 +02:00
nc-x
d5840e1e3d
Implement isExported for symbols in macros ( #11963 )
...
* Implement isExported for macros
* Reimplement isExported using VM callback mechanism
* VM does not support exceptions, use stacktrace() instead.
2019-08-18 11:51:28 +02:00
nc-x
b68380f09b
fixes #11872 ; include now gives a proper error message for all invalid infix operators ( #11965 )
2019-08-17 19:45:47 +02:00
Andreas Rumpf
db9e27dffd
Fixes #11118 ( #11964 )
...
* fixes #11118
* Reset closure iter exception before rethrowing
2019-08-17 10:37:38 +02:00
nc-x
cf09ef47b8
Remove duplicate line number from 'invalid forward declaration' error ( #11966 )
2019-08-17 10:35:25 +02:00