Commit Graph

5954 Commits

Author SHA1 Message Date
Göran Krampe
2cceaff88a Fixes #2749, traverse full inheritance for reprRecord 2015-05-20 11:59:02 +02:00
Andreas Rumpf
5d4ee87f3b Merge pull request #2754 from def-/intval
Intval
2015-05-19 14:36:03 +02:00
Andreas Rumpf
d7c0b269cb Merge pull request #2734 from def-/stdin-fix
Clean up stdin file reading of compiler.
2015-05-19 14:35:18 +02:00
Andreas Rumpf
c34d7e6467 Merge pull request #2761 from yglukhov/js-codegen-fix
Fixed JS call codegen, when first parameters are compile-time.
2015-05-19 14:33:47 +02:00
yglukhov
4439b00b19 Fixed JS call codegen, when first parameters are compile-time. 2015-05-19 13:41:18 +03:00
Dominik Picheta
59e95c015e Fixes problems introduced by #2738. Closes 2755. 2015-05-18 21:57:59 +01:00
def
2076e14a09 Update ast spec about uint literals 2015-05-18 21:34:26 +02:00
def
51de44be79 Make intVal work for uint literals in the VM 2015-05-18 21:31:24 +02:00
Dominik Picheta
f85dab3076 Merge pull request #2689 from def-/clang-cpp
Add -ldl with clang cpp compilation
2015-05-17 20:26:41 +01:00
Dominik Picheta
baee41499e Merge pull request #2712 from nanoant/patch/macros-introduce-typenode-for-typedesc
Macros: Introduce typeNode(t: typedesc): NimNode
2015-05-17 18:22:55 +01:00
Dominik Picheta
60af6a2653 Merge pull request #2747 from def-/json-inline
Make a few json procs inline, improves performance significantly
2015-05-17 18:20:27 +01:00
Dominik Picheta
d937b4cd85 Removes superfluous toUgly, documents toUgly better. 2015-05-17 18:18:33 +01:00
Dominik Picheta
0ab2dc2954 Merge pull request #2738 from onionhammer/devel
Improved performance of json rendering with `$`
2015-05-17 18:13:42 +01:00
def
46264a0674 Make a few json procs inline, improves performance significantly 2015-05-17 16:13:06 +02:00
def
2613110015 Use gProjectIsStdin instead 2015-05-17 16:10:46 +02:00
Adam Strzelecki
1d47617d1b Macros: Introduce getType(t: typedesc): NimNode
Since typedesc are exception in macros and they are not implicitly converted to
NimNode on macro call, we need some means to perform such conversion on demand.

Fortunately it is as simple as declaring new magic "NGetType" proc with
typedesc parameter.

NOTE: Keeping actual macro exceptional behavior for typedesc is important,
since it allows passing typedesc macro parameter to other procs or macros
expecting type parameter. If typedesc parameter was implicitly converted, then
we would lost this ability.
2015-05-17 15:28:41 +02:00
Andreas Rumpf
63f1e03278 Merge pull request #2732 from Perelandric/fix_miliseconds
Fixed 'milliseconds' spelling in code and docs
2015-05-17 12:04:03 +02:00
pdw
d1230497dd Updated with breaking changes 2015-05-16 14:35:41 -05:00
Dominik Picheta
61c7cc2ff7 Merge pull request #2701 from borisvassilev/fill
Fill array with same values (was issue #2462)
2015-05-16 18:52:30 +01:00
Dominik Picheta
4441c961c9 Merge pull request #2717 from reactormonk/sexp-to-libs
added documentation about sexp
2015-05-16 18:47:33 +01:00
onionhammer
30aed77d04 Fixed indentation (2 spaces) part 2 2015-05-16 12:37:07 -05:00
onionhammer
11457bc63b Fixed indentation (2 spaces) 2015-05-16 12:35:55 -05:00
onionhammer
f1343e52e0 Added comment noting improved performance of non-pretty string conversion 2015-05-16 12:33:00 -05:00
onionhammer
edce0ca2ed Fixed typo 2015-05-16 11:38:43 -05:00
Erik O'Leary
abc8e88c8a Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2015-05-16 11:34:09 -05:00
Dominik Picheta
4ac0804187 Merge pull request #2736 from mgee/fix-flowvar-type-in-docs
RawFlowVar was renamed to FlowVarBase
2015-05-16 14:11:41 +01:00
Markus Engelbrecht
5799f4f103 RawFlowVar was renamed to FlowVarBase 2015-05-16 14:35:10 +02:00
def
def61c9fcd Clean up stdin file reading of compiler.
Uses "stdinfile" as the module identifier now, which prevents problems
with - colliding with the minus operator. This fixes #2422 and #2702.
2015-05-16 12:38:53 +02:00
Erik O'Leary
911c5d45ec Improved performance of "$" on jsonnode 2015-05-15 22:12:31 -05:00
pdw
cb6f867495 Fixed 'milliseconds' spelling in code and docs 2015-05-15 20:15:12 -05:00
Dominik Picheta
1c0bbcff5a Merge pull request #2718 from apense/patch-3
Corrected sortedByIt example
2015-05-15 20:22:46 +01:00
reactormonk
3d3dcdabfe Merge pull request #2729 from mgee/fix-noSideEffect-typo
fix typo for noSideEffect pragma
2015-05-15 13:24:27 -05:00
reactormonk
2950732ec3 Merge pull request #2728 from mgee/fix-slicing-in-tut1
use new syntax for negative slicing in tut1
2015-05-15 13:24:20 -05:00
Markus Engelbrecht
7ba5f18e9d fix typo for noSideEffect pragma 2015-05-15 18:42:29 +02:00
Markus Engelbrecht
ddbcbab3e7 use new syntax for negative slicing 2015-05-15 18:39:56 +02:00
apense
e7bc828ef3 Update algorithm.nim 2015-05-14 18:32:26 -04:00
apense
78b7625417 Corrected sortedByIt example
`people` needs `var`
2015-05-14 14:16:58 -04:00
Simon Hafner
c0003cc73b added documentation about sexp 2015-05-14 22:57:29 +05:00
Andreas Rumpf
c30d7c3208 Merge pull request #2680 from reactormonk/epc
Implements EPC for nim-mode in nimsuggest
2015-05-14 02:16:12 +02:00
Andreas Rumpf
9abbe3ba69 Merge pull request #2564 from reactormonk/jpoirier-realtimeGCTest
Jpoirier realtime gc test
2015-05-14 02:06:11 +02:00
Simon Hafner
2bc1db7a30 run the C test too 2015-05-13 13:13:30 -05:00
Andreas Rumpf
f293e2c152 Merge pull request #2708 from nanoant/patch/dont-convert-subtype-typedesc-params
Fix #2662: Don't convert subtype typedesc params
2015-05-13 19:24:27 +02:00
Adam Strzelecki
a8fbaf917b Tests for static class proc, methods & iterators
This currently covers #2662 & #2710 bugs.
2015-05-13 19:10:54 +02:00
Adam Strzelecki
179d82c55b Fix #2662: Don't convert subtype typedesc params
There is no point to issue implicit HiddenStdConv encountering subtype of
typedesc[Base] parameter on overload resolution, since this will anyway never
reach codegen. This change effectively fixes compiler bug for:

  iterator it(T: typedesc[Base]) = ...
  for s in it(SubclassOfBase): ...

Where HiddenStdConv triggered implicit instantiation of variable of type
typedesc[Base] in for transform, that eventually fails at getUniqueType, that
refuses to work for typedesc.
2015-05-13 19:10:54 +02:00
Simon Hafner
9c4a74637d Merge branch 'devel' into jpoirier-realtimeGCTest 2015-05-13 12:06:05 -05:00
reactormonk
0bf78e2629 Merge pull request #2709 from jochenvdv/osproc-doc
Fix osproc documentation
2015-05-13 11:45:27 -05:00
Jochen Van de Velde
86c9fffc41 Fix osproc documentation 2015-05-13 18:19:51 +02:00
Andreas Rumpf
2dee0324f3 Merge pull request #2705 from borisvassilev/gcddocs
Document explicitly the behaviour of math.gcd with float arguments
2015-05-13 16:34:36 +02:00
Andreas Rumpf
ce2756dd89 Merge pull request #2707 from rbehrends/fix-getfileinfo-links
Fix behavior of os.getFileInfo() for symbolic links.
2015-05-13 16:33:56 +02:00
Simon Hafner
5e97780a94 changed from parseEnum to direct copy
Let's hope this doesn't break anything
2015-05-13 18:34:29 +05:00