Commit Graph

6384 Commits

Author SHA1 Message Date
Zahary Karadjov
2e5265bef5 experimental support for querying the type of expressions within macros
normalised the line endings of macros.nim (minor edits otherwise)
2012-10-03 01:59:50 +03:00
Zahary Karadjov
9c8bc3a244 the is operator now works with type classes and type variables
bugfixes:
the DLL tests were failing on Mac OS X, due to an incorrect DynlibFormat
2012-10-03 01:59:49 +03:00
Zahary Karadjov
770d4a997e implemented case expressions 2012-10-03 01:59:49 +03:00
Zahary Karadjov
92f70b08f9 table constructors now mimic more closely the syntax of case... of...
see the safePrintF example in the manual as a motivation
2012-10-03 01:59:49 +03:00
Zahary Karadjov
f8184e3490 always print stack traces on errors in debug builds of nimrod
I've been using this for a while and it's really more convenient than hunting the message
in msgs.nim and grepping the error code in the whole project
2012-10-03 01:59:49 +03:00
Zahary Karadjov
698785ef5e bugfix: allow tuple constructors in generic code 2012-10-03 01:59:49 +03:00
Zahary Karadjov
7e44015491 implemented return type inference
Other fixes:
* bind once is now the default for type classes as documented in the manual
* fixes an issue in template overloading (erroneous  ambiguity when different typedesc params were used)
2012-10-03 01:59:49 +03:00
Araq
b28fcdfa93 website improvements 2012-09-29 09:12:03 +02:00
Araq
2b49000cbb Merge branch 'master' of github.com:Araq/Nimrod 2012-09-29 08:07:05 +02:00
Araq
3bcf9f4e53 opengl wrapper compiles under windows 2012-09-29 08:06:43 +02:00
Dominik Picheta
e314da76b9 Fixes async scgi. 2012-09-28 18:45:31 +01:00
Zahary Karadjov
2aabae702d fixes ttypeselectors 2012-09-28 14:30:48 +03:00
Araq
95cf849954 Merge branch 'master' of github.com:Araq/Nimrod 2012-09-28 00:23:35 +02:00
Araq
36efc380dd website improvements; better opengl wrapper (still broken) 2012-09-28 00:22:07 +02:00
Zahary Karadjov
88ea9073c3 missing documentation added to the manual
documented:
* closures and the do notation
* type classes
* return type inference
* typedesc parameters and values
* destructor pragma
* fixed a number of typos
2012-09-27 22:44:52 +03:00
Zahary Karadjov
04c5f58ce4 normalized the line endings in the manual 2012-09-27 22:44:52 +03:00
Araq
5538727945 Merge branch 'master' of github.com:Araq/Nimrod 2012-09-26 02:22:39 +02:00
Araq
ca447be43e bugfix: c2nim and pas2nim work again 2012-09-26 02:22:22 +02:00
Zahary Karadjov
c899b51b52 test cases for the new typedesc features 2012-09-25 02:03:15 +03:00
Zahary Karadjov
badb6c0f66 improved support for typedesc values
* can be stored in constants and variables (including in containers like sequences)
* can be passed to and returned from macros
2012-09-25 02:03:15 +03:00
Araq
92b0d64018 version 0.9.0 v0.9.0 2012-09-23 21:57:19 +02:00
Araq
1de4effb46 Merge branch 'master' of github.com:Araq/Nimrod 2012-09-23 21:35:33 +02:00
Araq
7c08d14cfd preparations for 0.9.0 2012-09-23 21:35:12 +02:00
Zahary Karadjov
27dc9fcb8f fixes #186 and the ttypedesc1 test case 2012-09-23 19:34:20 +03:00
Dominik Picheta
15dcb9a6a6 Added close() to async versions of scgi and httpserver. 2012-09-23 16:04:17 +01:00
Araq
bad34033de Merge branch 'master' of github.com:Araq/Nimrod 2012-09-23 09:02:33 +02:00
Araq
83b90b941b bugfix: proc bodies as expr 2012-09-23 09:02:11 +02:00
Dominik Picheta
d00cb877fd Fixes sockets.recvFrom not setting length of data. 2012-09-23 01:31:49 +01:00
Araq
92e49aeaaf fixes #73 2012-09-23 01:18:13 +02:00
Araq
2997e26ee1 Merge branch 'master' of github.com:Araq/Nimrod 2012-09-23 00:52:51 +02:00
Araq
603dc36008 bugfix: 'result' cannot be captured in a closure 2012-09-23 00:52:34 +02:00
Araq
ea4435544e implements/fixes #195 2012-09-22 23:09:25 +02:00
Araq
759b3201ad proc bodies can be expressions with a type 2012-09-22 22:43:36 +02:00
Dominik Picheta
6c6f9e6674 Ftpclient now fully works both synchronously and asynchronously.
Fixed some deprecation doc messages. And some issues with asyncio.
2012-09-22 16:39:51 +01:00
Araq
3ef146b0ea 'mixin' and 'interface' are now keywords 2012-09-22 10:04:31 +02:00
Araq
4577751bad bugfix: code generator can deal with ftpclient.nim 2012-09-21 22:07:26 +02:00
Dominik Picheta
be1a709e7e ftpclient fixed but causes an issue with the code generator and
therefore does not compile.

Asyncio: Added handleWrite event and an ability to wrap an already
initialised TSocket to a PAsyncSocket.
Fixed tircbot test.
2012-09-21 20:39:47 +01:00
Araq
e605b22ccf bugfix: typeinfo generation (2) 2012-09-21 20:19:39 +02:00
Araq
505f179515 added tactors2 test 2012-09-21 19:31:18 +02:00
Araq
32aa46a881 bugfix: typeinfo generation 2012-09-21 16:28:57 +02:00
Araq
034686d4c0 bugfix: tester does not hang anymore 2012-09-21 00:32:15 +02:00
Araq
043921c7a7 fixes #194 2012-09-20 23:44:52 +02:00
Araq
e741583f7b math.random(max: float) not available on windows 2012-09-19 00:16:23 +02:00
Araq
cb6ad8cb74 bugfix: 'nimrod i' works again 2012-09-18 20:59:14 +02:00
Araq
9b8afc9321 pragma statements in rodfiles -- couldn't reproduce 2012-09-18 17:47:57 +02:00
Araq
4892d6929a bugfix: 'defined/compiles' open an implicit mixin scope in generics 2012-09-18 16:27:02 +02:00
Araq
a71c5f98ea made tests green again 2012-09-18 00:36:48 +02:00
Araq
391fb89a3e some support for passing blocks to overloaded templates/macros 2012-09-17 20:30:15 +02:00
Araq
b83dce7281 bugfix: import of pure enums 2012-09-17 17:07:09 +02:00
Araq
c934db86ad stricter symbol lookup in generics 2012-09-17 17:01:34 +02:00