Commit Graph
221 Commits
Author SHA1 Message Date
José Valim 0deab478de Improve syntax errors. 2011-06-25 00:42:55 -03:00
José Valim 8ca419af2f Allow begin; expr; end. 2011-06-24 10:36:06 -03:00
José Valim 50160851f5 no_constant exception is now no_module. 2011-06-10 21:12:46 +02:00
José Valim 7a22c3fc0a Add tests to respond_to. 2011-06-10 13:19:14 +02:00
José Valim 50bb9ab0ea Tidy up conversions. 2011-06-10 13:19:14 +02:00
José Valim 7ffd254834 Actually, this is not a good idea, revert @@. 2011-06-07 14:13:23 +02:00
José Valim 804b740b48 Retrieve ivars. 2011-06-07 13:18:29 +02:00
José Valim dadb66fa5e Update error messages. 2011-06-06 08:42:27 +02:00
José Valim 7e6893d99c Remove old TODO items, 8 to go. 2011-06-05 12:33:04 +02:00
José Valim 78e02e4177 More tests and docs for Using. 2011-06-05 12:19:24 +02:00
José Valim 94b559c098 __added_as_mixin__ -> __mixed_in__ 2011-06-05 11:43:42 +02:00
José Valim da9311ea2e Test definition methods. 2011-06-05 11:40:47 +02:00
José Valim d0d27ceb1b Get rid of method_missing. 2011-06-04 19:55:18 +02:00
José Valim 62c3931d4c Fix failing tests. 2011-06-04 19:55:18 +02:00
José Valim 2e329f0bab More clean up, start playing with Using. 2011-06-04 19:55:17 +02:00
José Valim e509f181b7 Removing more code. 2011-06-04 19:55:17 +02:00
José Valim 15ed988dae Remove unused methods. 2011-06-04 19:55:17 +02:00
José Valim 8b61a6b5e4 Use binding on Regexp. 2011-06-04 19:55:17 +02:00
José Valim 008b2467e2 Convert builtin to use bindings. 2011-06-04 19:55:16 +02:00
José Valim a91372aa79 Ensure parent returns nil. 2011-06-01 16:10:58 +02:00
José Valim 807d9dd3e1 Remove {:} and use {} as empty dict. And empty tuple can be retrieved with Tuple.new. 2011-05-30 13:25:29 +02:00
José Valim 64b2cac9e2 Add UnboundMethod and Method. 2011-05-28 16:44:24 +02:00
José Valim 9d35bec69d Raise errors if methods, modules or objects are being defined inside a method. 2011-05-27 22:18:46 +02:00
José Valim 995797a646 Relax syntax restrictions. 2011-05-27 22:03:42 +02:00
José Valim 6cb2ee330e Invert the order of most error arguments. 2011-05-25 15:24:18 +02:00
José Valim 294bec9ce2 Add Ruby's operators and method calls precedence.
[1,2,3].length + 1 % => ([1,2,3].length) + 1
  [1,2,3].length +1  % => [1,2,3].length(+1)
  [1,2,3].length+1   % => ([1,2,3].length) + 1

Damn, this shit was hard.
2011-05-25 11:56:16 +02:00
José Valim e922b9af65 Remove deprecations. 2011-05-01 21:29:14 +02:00
José Valim 145654244d Be more explicit about when the error happened. 2011-04-24 10:23:56 +02:00
José Valim 01117994ba Apply feedback form yesterday's talk, i.e. remove ambiguity between functions calls and local calls. 2011-04-19 10:06:28 +02:00
José Valim 4f8d2e2a75 Divide and conquer. 2011-04-14 09:09:30 +02:00
José Valim 19a4497010 Beware of reserved module names. 2011-04-12 11:23:48 +02:00
José Valim 9fadb8f62b Raise an error when reopening modules/objects to avoid common pitfalls. 2011-04-12 10:04:11 +02:00
José Valim 83eb0a6180 Erlang tests are green. 2011-04-09 12:30:22 +02:00
José Valim ca80e2c3f5 Strings are now binaries without no extra pass. This makes playing with strings faster and more compatible with Erlang. 2011-04-03 20:56:51 +02:00
José Valim 452035254e Add begin/end, that opposite to try/end, pass variables forward. 2011-04-03 10:52:36 +02:00
José Valim 099a17dcdf Empty ivars should return nil. 2011-04-02 17:55:00 +02:00
José Valim 740ad56f6f Remove constructor in favor of initialize. 2011-03-28 10:42:18 +02:00
José Valim 4504f64d5e More variable scopes handling with guards. 2011-03-28 01:51:48 +02:00
José Valim 5d8a88c4c6 Finish removing forced single assignment. 2011-03-27 13:24:15 +02:00
José Valim f5902a9dfd Support to explicitly bounded variables. 2011-03-27 00:14:49 +01:00
José Valim f6222e83ca Optimized times using pattern matching. 2011-03-25 23:44:32 +01:00
José Valim 7540f5ec7d Simplifying modules behavior. 2011-03-24 09:35:54 +01:00
José Valim a7d0bb0b10 Finish optimization round up. 2011-03-23 13:51:37 +01:00
José Valim fe9c8993c1 Remove protected warnings. 2011-03-23 10:38:56 +01:00
José Valim 0f16814e6d Generate implicit mixins and protos when necessary for caching. 2011-03-23 01:02:38 +01:00
José Valim 314226658f Regular modules are also flattened. 2011-03-22 22:48:16 +01:00
José Valim fc4f129828 Mixins are lazily compiled at the end of the object. Next step is to flat modules. 2011-03-22 18:33:45 +01:00
José Valim ed84bb3748 Fix a bug on code formatter. 2011-03-17 10:26:31 +01:00
José Valim d757cb22be Add support to nil. 2011-03-17 09:54:04 +01:00
José Valim 0054df3234 Add nil. 2011-03-17 09:42:43 +01:00