Yurii Rashkovskii
9bc67bbfdf
Fix defrecordp documentation with regards to the type generated
2013-06-30 00:04:16 +02:00
Yurii Rashkovskii
83c964ae46
Fix defrecordp definition of the <record>_t type
...
It should use the correct tag in the tuple to be correct.
2013-06-29 23:58:16 +02:00
José Valim
8e5f14dc74
Require Erlang 16B+
2013-06-29 16:59:01 +02:00
José Valim
c832d3a78e
Import records that depends on others, closes #1334
2013-06-29 13:11:50 +02:00
Yuki Ito
dbe2851cdb
Fix typo in Module.get_attribute doc
2013-06-29 11:41:54 +09:00
Tom Janssens
ea32d951ab
Skip symlink tests on windows
2013-06-28 15:45:42 +02:00
Tom Janssens
598f0e0141
We no longer execute the doc_tests for elixir file helpers
...
Due to windows incompatibility, we removed some of the doctests for the
file helpers.
2013-06-28 15:43:51 +02:00
John Warwick
e3d086abb5
Added more doctests in Keyword module
2013-06-27 22:53:53 -04:00
John Warwick
74ea72246e
Fixing typos and formatting in Keyword docs
2013-06-27 22:42:53 -04:00
José Valim
447a57750f
Simplify binding handling
2013-06-27 17:47:45 +02:00
José Valim
e1c3df3bef
Remove verbose doctest
2013-06-27 14:33:19 +02:00
John Warwick
88e4b5833f
Fixed return type in doc of Enum.each
2013-06-26 23:55:04 -04:00
John Warwick
d5323e3311
Added examples for Enum.count/2 and Enum.zip/2
2013-06-26 23:45:36 -04:00
John Warwick
1e73ea0527
Fixed doc example for Enum.each
2013-06-26 23:30:02 -04:00
John Warwick
dc3ca821fb
Fixed typo in Enum.min docs
2013-06-26 23:27:40 -04:00
John Warwick
c9fe36c28b
Fixed bad Example formatting in Enum
2013-06-26 23:23:58 -04:00
José Valim
7ba5733496
No need to wrap lists in blocks
2013-06-26 21:53:33 +02:00
José Valim
e035dda2db
Inline list funcs in HashDict too
2013-06-26 21:53:33 +02:00
Eric Meadows-Jonsson
8e8ebe73b9
Refer to the moduledoc from Record.defrecord
2013-06-25 15:10:27 +02:00
José Valim
25862cb7a3
Ensure variables from when in match? do not leak too
2013-06-25 08:58:19 +02:00
vanstee
a6f256fbe8
Remove variables defined in match? from scope
...
At @josevalim's suggestion, we loop over the ast given to the macro and
disable scope of any new variables defined, which effectively stops
variables from leaking into the outside scope.
Fixes #1304
2013-06-24 22:38:40 -04:00
José Valim
3ebca00872
quote calls them context, so let's keep it consistent
2013-06-24 22:38:41 +02:00
José Valim
7e11cea780
Ensure binding(..., false) also works
2013-06-24 16:24:08 +02:00
Tom Janssens
a8b7663f37
Skip windows test for CHMOD 777, as this does not work on windows
2013-06-24 13:17:28 +02:00
Tom Janssens
3b6afdd7d4
Cleaned up test_helper some more
2013-06-24 12:47:30 +02:00
José Valim
943fabb548
Merge pull request #1322 from ToJans/master
...
Tests on windows now intercept stderr from elixir(c) invocations
2013-06-24 03:35:27 -07:00
Tom Janssens
53f5fe71bb
Cleaned up the elixir test_helper.exs a bit
2013-06-24 12:33:12 +02:00
Tom Janssens
c406ce4aac
Grouped some windows functionality in test_helper for elixir
2013-06-24 12:16:38 +02:00
Tom Janssens
4b4a7e8d4a
Tests on windows now intercept stderr from elixir(c) invocations
...
Previously tests on windows did not intercept stderr when they were
invoked through :os.cmd, so we now add a piper redirect from stderr
to stdout when invoking elixir(c) on windows.
2013-06-24 12:04:46 +02:00
José Valim
7d2214678e
Remove useless assignment on defrecord
2013-06-24 10:30:08 +02:00
José Valim
81972106d9
Fix unused variable warning
2013-06-24 10:12:58 +02:00
José Valim
8abed86b1a
Improve error message and optimize record macros
2013-06-24 08:14:38 +02:00
José Valim
5a882161ac
Allow a record to import itself, closes #1319
2013-06-24 07:51:21 +02:00
Guillermo Iguaran
d5e2b41c37
Add Enum.reject
...
Enum.reject returns elements of collection for which `fun` returns false.
2013-06-24 00:26:52 -05:00
José Valim
d4d824022f
Update docs for Record.import/2
2013-06-23 22:22:15 +02:00
José Valim
c6284557e7
Rename sigils from __ to sigil_$, closes #1301
2013-06-23 20:38:37 +02:00
José Valim
a8a2f86a23
Record type should be private by default, closes #1288
2013-06-23 20:20:47 +02:00
José Valim
fc219e7dca
IO.ANSI now uses binding
2013-06-23 19:32:58 +02:00
José Valim
96a103d222
Allow :binding as an option in quote
...
This commit also adds Macro.expand_once/2 and Macro.expand_all/2.
2013-06-23 19:23:32 +02:00
José Valim
f525f5b8cb
Add unquote: true support to Macro.escape
2013-06-23 16:32:07 +02:00
José Valim
5c30a687fa
Inspect module before printing, closes #1309
2013-06-23 15:27:04 +02:00
José Valim
9ffe8b0e97
Clean up defdelegate docs
2013-06-23 13:36:01 +02:00
José Valim
903aa60fec
Finish operator table clean up
2013-06-23 13:18:25 +02:00
José Valim
969bc968ee
Move ++, --, ** and // to new table
2013-06-23 13:18:25 +02:00
José Valim
e941d78daf
Move operator table clean up
2013-06-23 13:18:25 +02:00
José Valim
8d3475825b
Group arrow-like ops together
2013-06-23 13:18:25 +02:00
José Valim
68c890e179
Move and and or operators to the new table
2013-06-23 13:18:25 +02:00
José Valim
6f73d7dbb9
Move comp_op to the new table
2013-06-23 13:18:25 +02:00
José Valim
c2ac967123
Move all unary operators to new schema
2013-06-23 13:18:25 +02:00
José Valim
dd573c9806
Initial work cleaning up op table
2013-06-23 13:18:25 +02:00