Andreas Rumpf
9b810b17a2
fixes #4803
2016-09-24 21:00:31 +02:00
Andreas Rumpf
dfa0699e73
C++ backend: use .noInit pragma for non-public default constructors; refs #4687
2016-09-04 22:36:29 +02:00
Araq
884d5518dd
Merged
2016-08-27 20:52:26 +02:00
Andreas Rumpf
969981c1da
fixes #3606
2016-08-26 13:32:52 +02:00
Jacek Sieka
618e264b58
remove TLoc.heapRoot
2016-08-17 18:58:35 +08:00
Araq
a13cb26c40
next steps in getting symbol files to work again
2016-08-16 20:04:27 +02:00
Jacek Sieka
3cd4cf4320
remove unused stuff
2016-08-09 22:54:27 +08:00
Andreas Rumpf
39ebe2175b
compiler almost free of deprecated expr/stmt names
2016-07-30 16:34:42 +02:00
Jacek Sieka
7d62f031f6
remove sfFakeConst
2016-07-30 16:19:53 +08:00
Andreas Rumpf
60b187513e
stdlib and compiler don't use .immediate anymore
2016-07-29 23:51:01 +02:00
Andreas Rumpf
f5fa5dae85
generic multi-methods should work now
2016-07-28 20:23:24 +02:00
Andreas Rumpf
9eb909baf9
fixes #4485 ; package handling works better; docgen works with --project on Nimble package level
2016-07-19 14:13:23 +02:00
Andreas Rumpf
b7c1be03c8
added system.newSeqOfCap for improved efficiency
2016-07-15 17:04:14 +02:00
Andreas Rumpf
d7e172a6bc
make tests green again
2016-07-10 01:17:08 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Jeff Ciesielski
94d1aa5109
Add the ability to pass a value with the -d flag
...
This allows the end user to use the {.magic: "IntDefine"/"StrDefine"}
pragmas to pass values into code at compile time. This has a nice side
effect of also allowing/requiring a default value to be assigned in the
code (see osalloc.nim/StandaloneHeapSize for an example)
2016-07-04 18:11:25 -04:00
Andreas Rumpf
5f4e98bbc7
fixes #4395 , getType still not entirely correct
2016-06-23 12:41:45 +02:00
Andreas Rumpf
e8d507c859
system. for cstrings uses value comparisons, not reference comparisons
2016-06-02 16:38:20 +02:00
Andreas Rumpf
4180f59b27
fixes #1713
2016-05-30 16:24:52 +02:00
Andreas Rumpf
0b84ee167b
fixes #2159
...
Hints and warnings are only emitted for the main package that is compiled
2016-05-28 17:12:51 +02:00
Federico Ceratto
d9cb85c2d8
Spellcheck
2016-02-29 11:25:51 +00:00
Andreas Rumpf
c9966a3e17
use 'using' instead of 'sig' keyword; cleans up new features a bit
2016-02-29 12:19:54 +01:00
Andreas Rumpf
38dee2095c
added 'sig' feature; removed tfShared support in the compiler
2016-02-28 19:56:41 +01:00
Andreas Rumpf
7ae45ea420
'using' statement is obsolete
2016-02-28 14:48:15 +01:00
Andreas Rumpf
1afdefcbe9
added experimental .this pragma
2016-02-28 03:17:20 +01:00
Andreas Rumpf
159a2ff955
fixes #3636
2016-01-04 02:04:59 +01:00
Andreas Rumpf
c1627354d1
first implementation of the new lambda-lifting pass; barely anything works
2015-12-26 00:42:30 +01:00
Araq
81f876040b
added newTree to ast.nim
2015-11-10 15:31:21 +01:00
Araq
d673fb3911
nimsuggest: added 'chk', 'outline' and 'highlight' features
2015-11-01 23:26:31 +01:00
Aman Gupta
0679340b52
switch to bitsize:int
2015-09-29 14:39:20 -07:00
Aman Gupta
5e9ce88daf
implement bitsize pragma for bitfields
2015-09-28 14:34:36 -07:00
Araq
90d1ad4231
made disjoint checker smarter; fixes regressions
2015-09-23 21:46:32 +02:00
Araq
5b2f54ffa1
fixes #3313
2015-09-18 11:24:16 +02:00
Araq
612cd25d5d
usage of NimNode triggers .compileTime context; fixes #1679
2015-09-14 12:41:49 +02:00
Araq
2a797c362a
preparations for better handling of 'a[i]' in generics; stmt lists can be lvalues
2015-09-12 10:51:20 +02:00
Araq
ffe51966b9
fixes a critical codegen bug triggered by .async
2015-09-10 10:50:29 +02:00
Araq
dc047931bb
fixes #2590 ; methods now require a .base annotation
2015-09-06 02:31:28 +02:00
Yuriy Glukhov
790ef23c48
nimvm is magic
2015-09-04 20:50:29 +03:00
Araq
e733debec7
first implementation of write tracking and escape analysis; still disabled
2015-08-31 23:06:34 +02:00
Araq
695e2e970e
implemented macros.getImpl
2015-08-21 02:34:34 +02:00
Araq
b0b716fca7
fixes #3079 , fixes #1146 , fixes #2879
2015-07-22 16:32:56 +02:00
Jacek Sieka
e432de84a2
Linebreak TMagic by rough category
2015-07-12 21:49:33 +08:00
Araq
9a8de7f3a3
fixes #3054
2015-07-05 15:00:48 +02:00
Adam Strzelecki
1a0417fbe0
macros: Introduce sameType(a, b) for node types
...
Previously introduced node comparison `==` was working somehow wrong on nodes
returned from getType(a), comparing just ids of the symbols.
Recently introduced `==` change 47dce26886
started comparing symbol nodes pointer-wise, thus strictly. Since getType(a)
always creates new symbol pointing to the type, comparing two such nodes using
`==` always returns false, even they point to the same type.
That is why we need a new sameType macro to be able to tell if these nodes
point to the same type.
2015-07-03 11:11:10 +02:00
Araq
cabbcd411d
implements varargs[untyped]; refs #2545 ; to be documented
2015-07-02 16:18:11 +02:00
Araq
4afb8b8043
fixes #2935
2015-07-01 02:15:21 +02:00
Andreas Rumpf
e7bb37d12c
Merge pull request #2896 from r-ku/I64-magics-gone
...
I64 magics gone
2015-06-12 00:06:39 +02:00
Andreas Rumpf
cb439d70bc
Merge pull request #2892 from apense/patch-6
...
Fixes #2886 (moves compiler function into the compiler)
2015-06-10 10:55:31 +02:00
rku
87b6220897
Removed magics: mAbsI64
2015-06-10 10:25:36 +03:00
rku
3984fecae6
Removed magics: mBitnotI64
2015-06-10 10:25:36 +03:00