Commit Graph
667 Commits
Author SHA1 Message Date
José Valim 98efb89125 Make +:foo behaviour consistent with foo:bar (both still raise a warning though) 2012-10-09 21:56:36 +02:00
José Valim 563ca3fb58 Remove extra parens 2012-10-09 21:34:30 +02:00
Yehuda Katz b2e96d3901 More Calendar implementation:
* from_tuple
* to_tuple
* add
* subtract
2012-10-09 16:21:37 +02:00
José Valim 54224c0a61 Support unary plus and minus in Macro.term? 2012-10-09 07:56:34 +02:00
José Valim 901d00b398 Merge pull request #517 from yrashk/macro-is-term
Add Macro.term?/1
2012-10-08 21:56:42 -07:00
Yurii Rashkovskii c8aab86122 Add Macro.term?/1 2012-10-08 21:01:20 -07:00
José Valim 11f934b74a Protocols are powered by behaviours behind the scenes 2012-10-08 20:13:45 +02:00
José Valim ee69cb4f74 Avoid false negatives in protocol dispatch, closes #503 2012-10-08 16:00:27 +02:00
Yurii Rashkovskii 37b4073435 cp_r/c test file should be managed in tests' setup/teardown
The reason for this is because if it is stored in the repository, reltool can't build elixir's release.
2012-10-07 02:02:24 -07:00
José Valim 69e36c731c Simplify __scope__ API 2012-10-05 18:26:52 -07:00
José Valim 626ed9532b Erlang. syntax is deprecated in favor of simply using atoms 2012-10-05 17:08:22 -07:00
José Valim 441bf29f16 Remove special case for specs in elixir_module.erl
Previously, since the functions were not concrete
but stubs replaced at compilation time, we had to
special the module definition to not actually include
the specs, which would become compilation errors.

Now we provide a concrete implementation of the
functions and therefore the spec will be available
in the final source. Those implementations are not
actually invoked in practice, since they are still
transformed into erlang ones for performance reasons.
2012-10-05 15:45:29 -07:00
José Valim fac57e78b2 Ensure Kernel.__info__(:functions|:macros) returns the complete set 2012-10-05 15:45:28 -07:00
Yurii Rashkovskii ecf4ed56f2 Typo fix 2012-10-05 13:14:43 -07:00
José Valim 4dcff67b47 Unify Regex and String APIs, closes #505 2012-10-04 16:25:04 -07:00
José Valim e6dba433eb Add Module.create 2012-10-03 23:27:34 -07:00
José Valim a192f7778d use proper offset on record extensions 2012-10-03 17:14:56 -07:00
José Valim 0632e01f44 Use references instead of relying on file names 2012-10-01 23:39:40 -07:00
José Valim 001c242e74 Reset internal variable data when assigning binding 2012-10-01 14:24:01 -07:00
Devin Torres bdb14b3d2d Separate sigil tests into their own test case 2012-10-01 15:29:34 -05:00
Yehuda Katz 84a5404468 Added initial work on Calendar module 2012-09-29 20:20:08 -07:00
José Valim a22530baf9 Simplify import api 2012-09-28 15:48:23 -07:00
José Valim 4859264fe3 Import ignores function/macros starting with underscore, default callbacks to underscore style 2012-09-27 16:00:26 -07:00
José Valim 010faad0ce Improve tests for bitstring macros 2012-09-26 23:30:45 -05:00
José Valim e42840bf81 Allow macros as bitstrings specifiers 2012-09-26 20:43:25 -05:00
José Valim 80bc2c9825 Check if tty is actually supported before invoking it, closes #489 2012-09-25 14:06:22 -05:00
José Valim 19065ac43e Simplify protocol handling 2012-09-25 14:06:22 -05:00
José Valim 05eefdfc5c Merge pull request #488 from bellthoven/string_improvements
Properly idented case statement
2012-09-24 08:30:42 -07:00
Gustavo Dutra 7438d4b9f7 Properly idented missing case 2012-09-24 08:50:20 -03:00
José Valim 78d80334c2 Merge pull request #485 from bellthoven/string_improvements
String improvements
2012-09-23 21:55:43 -07:00
Gustavo Dutra 418d590668 Properly identing case statement 2012-09-23 21:40:08 -03:00
Gustavo Dutra 76eef91ff3 Refactoring in order to move the logic to functions signatures 2012-09-23 14:49:31 -03:00
José Valim e9ff6a57da Add nil? macro 2012-09-23 12:09:22 -05:00
José Valim fe788964bd Add optional comma in lists, tuples, bit strings and keywords, closes #479 2012-09-23 11:43:38 -05:00
Rafael Mendonça França cc624348f3 Whitespaces ✂️ [ci skip] 2012-09-21 17:21:18 -03:00
Gustavo Dutra 7ef9edd523 Implemented String.at/2 2012-09-20 13:08:35 -03:00
Gustavo Dutra 8788e82d1c Implemented String.length/1 2012-09-20 13:08:35 -03:00
Gustavo Dutra 8a318256e0 Implemented String.last/1 2012-09-20 13:08:35 -03:00
Gustavo Dutra 909a4eb33a Implemented String.first/1 2012-09-20 13:08:35 -03:00
Gustavo Dutra 984dc056ee Refactored String.codepoints to use String.codepoint which in now the main entry point for utf8 strings 2012-09-20 13:08:35 -03:00
ILYA Khlopotov 52d12a35fb Implementation of to_list macro for Record.defmacros 2012-09-19 18:34:18 -07:00
ILYA Khlopotov 602ee253b8 Implementation of to_keywords macro for Record.defmacros 2012-09-19 18:32:38 -07:00
ILYA Khlopotov 503ccae3ab Fixing compilation warning about unused variable. 2012-09-19 18:29:23 -07:00
ILYA Khlopotov 6d2c2867c4 Get macro implementation for Record.defmacros 2012-09-19 11:20:35 -07:00
ILYA Khlopotov acd12e637e For consistency use find_index in Record. 2012-09-19 11:07:15 -07:00
José Valim fed42dc885 Merge pull request #480 from guedes/implementing_codepoints
Implementing codepoints
2012-09-18 05:12:38 -07:00
José Valim b2037b0fcc Module.read_attribute and Module.add_attribute deprecated
In favor of `Module.get_attribute` and `Module.put_attribute`
which mimics Dict API
2012-09-18 13:51:32 +02:00
José Valim a0255b6ef8 Simplify Enum protocol 2012-09-17 22:32:08 +02:00
Dickson S. Guedes b8019e64af removing some unused code 2012-09-16 22:19:48 -03:00
Dickson S. Guedes e5d000e672 adding more tests 2012-09-16 16:28:23 -03:00