Commit Graph
56 Commits
Author SHA1 Message Date
José Valim 48354b3c9b Improve coverage, behavior and docs for Module.concat. 2012-03-27 13:05:48 +02:00
José Valim c5be874751 Remove support to ::, down to 16 failures. 2012-03-25 21:35:49 +02:00
José Valim d815788c52 Compile files using . and inside __MAIN__ 2012-03-25 18:48:20 +02:00
José Valim eddb4014fa Ensure compilation sets the source. 2012-03-23 15:23:13 +01:00
José Valim 120eeff012 Allow Erlang attributes to be added more than once. 2012-02-26 12:18:36 +01:00
José Valim 6bd337ea9e Improvements to defforward and module functions. 2012-02-19 13:18:36 +01:00
José Valim 941b473155 Do not check clauses in compiled callbacks. 2012-02-18 16:24:21 +01:00
José Valim c3d72a4945 __using__ always expects two arguments. 2012-02-15 15:07:40 +01:00
José Valim df192d3787 Make apply a macro and ensure it does not fail with custom tails. 2012-02-14 13:15:17 +01:00
José Valim 56dbb2ba1d Add __FUNCTION__ reflection. 2012-02-14 10:53:03 +01:00
José Valim 1126e170b4 Fix failing tests. 2012-02-13 17:28:58 +01:00
José Valim 3a06259951 Convert from def test_rest to test :rest 2012-02-13 16:56:11 +01:00
José Valim 7c36bca859 Allow dynamic function generation. 2012-02-13 13:35:20 +01:00
Rafael Mendonça França 1991d8669c Use new assertions on tests 2012-02-12 00:22:52 -02:00
José Valim f3e163fa7a Allow duplicated attributes. 2012-02-08 10:33:01 +01:00
José Valim d62956881b Allow developer to register custom attributes. Add add_attribute and delete_attribute APIs. 2012-02-08 10:03:23 +01:00
José Valim 39b1442ffb Clean up function syntax. 2012-02-06 23:28:48 +01:00
José Valim 41d2a7f87e Revert "Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity."
This reverts commit 20f524dae2.
2012-02-06 22:46:24 +01:00
José Valim 20f524dae2 Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity. 2012-02-06 16:39:55 +01:00
José Valim f799fce0ec Merge import and require, get rid of refer. 2012-01-22 18:53:32 +01:00
José Valim 0ed5564381 Improve coverage. 2012-01-22 11:47:55 +01:00
José Valim f7883b848a Improve guards support. 2012-01-22 11:45:50 +01:00
José Valim ee2c03217e Revert "Get rid of defp in favor of data and @visibility :private."
This reverts commit 20e4b3a5f9.
2012-01-20 22:55:03 +01:00
José Valim 20e4b3a5f9 Get rid of defp in favor of data and @visibility :private. 2012-01-20 19:42:23 +01:00
José Valim f4c4ff622a Shortcut data API works. 2012-01-20 18:37:50 +01:00
José Valim 709e90c792 Add reserved data attributes. 2012-01-20 13:04:34 +01:00
José Valim c6176548d2 Rename Orddict.fetch -> Orddict.get. 2012-01-16 22:18:59 +01:00
José Valim 80579b0b8c Fix __LINE__ for macros. 2012-01-13 13:59:21 +01:00
José Valim 7b3d55eec8 Added Module#function_defined? 2012-01-12 17:54:51 +01:00
José Valim 98f9e3d1b8 Rename __data__ to __info__(:data) so it also properly abstracts Erlang's info. 2012-01-12 16:59:19 +01:00
José Valim 0de169ddbd do not allow __MODULE__ to be assigned (as in ruby) 2012-01-09 21:17:34 +01:00
José Valim 804544b5a0 Read a specific key in one step. 2012-01-09 20:17:00 +01:00
José Valim 2c979f6079 Allow isolated function declaration. 2012-01-09 13:05:35 +01:00
José Valim af2fe2fffb Add a default hook name for add_compile_callback 2012-01-09 10:10:14 +01:00
José Valim a4155116ba Allow refer with one argument, closes #91. 2012-01-08 17:48:17 +01:00
José Valim 1728606ad3 Add tests for compile callbacks, closes #70. 2012-01-07 12:42:54 +01:00
José Valim 3ae6231c19 Allow data to be store in modules. 2012-01-07 11:02:56 +01:00
José Valim 3c1d993fce Add a test_helper 2012-01-05 10:44:01 +01:00
José Valim ebdbc7d23c Move stuff to module.ex 2012-01-04 21:24:58 +01:00
José Valim 8444841ee8 Create a distinction between eval and eval_quoted. 2012-01-04 20:39:28 +01:00
José Valim 2080e054ab module -> defmodule 2012-01-02 11:08:25 +01:00
José Valim 3856c74a2b Protocols now work as expected \o/ 2011-12-31 19:03:46 +01:00
José Valim ade29ec9c2 Added module eval. 2011-12-31 18:12:17 +01:00
José Valim 3e1eef0423 Remove and disable old tests. 2011-12-19 16:36:56 +01:00
José Valim fb828b54e0 Add a test case to previous commit. 2011-06-29 08:09:36 -03:00
José Valim 989133cb19 Enforce -> for one liners and do...end for multiline 2011-06-25 23:13:20 -03:00
José Valim fe63706b21 Add Module.eval and Module.stacktrace. 2011-06-13 20:26:31 +02:00
José Valim 861c4814d2 Cleanup ROADMAP. 2011-06-13 18:42:27 +02:00
José Valim 4c310fe5f3 Add remove_ivar method. 2011-06-13 18:39:31 +02:00
José Valim 8b42831152 Bring Ruby method dispatching semantics. Local calls only apply to private methods from now on. 2011-06-08 11:41:57 +02:00