summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-12-23Merge pull request #2684 from kou/fix-splat-and-multiple-assignmentsYukihiro "Matz" Matsumoto
Fix splat and multiple assignments
2014-12-23Fix splat and multiple assignmentsKouhei Sutou
Case1: From variable Code: a = [1, 2, 3, 4, 5] b, c, *d = a p [a, b, c, d] Before: [[1, 2, 3, 4, 5], 1, 2, []] After: [[1, 2, 3, 4, 5], 1, 2, [3, 4, 5]] Ruby: [[1, 2, 3, 4, 5], 1, 2, [3, 4, 5]] Case2: From variables Code: a = [1, 2, 3] b = [4, 5, 6, 7] c, d, *e, f, g = *a, *b p [a, b, c, d, e, f, g] Before: [[1, 2, 3], [4, 5, 6, 7], 1, 2, [], 6, 7] After: [[1, 2, 3], [4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7] Ruby: [[1, 2, 3], [4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7] Case 3: "for" Code: a = [1, 2, 3, 4, 5, 6, 7] for b, c, *d, e, f in [a] do p [a, b, c, d, e, f] end Before: [[1, 2, 3, 4, 5, 6, 7], 1, 2, [], nil, nil] After: [[1, 2, 3, 4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7] Ruby: [[1, 2, 3, 4, 5, 6, 7], 1, 2, [3, 4, 5], 6, 7]
2014-12-20Merge pull request #2681 from sdottaka/mrdb-break-windowsYukihiro "Matz" Matsumoto
mrdb: fix that break command cannot handle Windows paths
2014-12-20mrdb: fix that break command cannot handle Windows pathssdottaka
Before fix: ``` $ mrdb c:\tmp\b.rb (c:\tmp\b.rb:1) break c:\tmp\b.rb:3 Class name 'c' is invalid. ``` After fix: ``` $ mrdb c:\tmp\b.rb (c:\tmp\b.rb:1) break c:\tmp\b.rb:3 Breakpoint 1: file c:\tmp\b.rb, line 3. ```
2014-12-19now retrieves number of arguments of blocks from OP_ENTER op code; close #2671Yukihiro "Matz" Matsumoto
2014-12-19block_given? should return correct value when called in blocks; close #2678Yukihiro "Matz" Matsumoto
avoid a loop to find parent's callinfo using mrb->c->cibase[env->cioff]
2014-12-19block_given? should return false on top-level; ref #2678Yukihiro "Matz" Matsumoto
2014-12-17String#[]: float handling merged to #2677Yukihiro "Matz" Matsumoto
2014-12-17Merge branch 'h2so5-string-nil-index'Yukihiro "Matz" Matsumoto
2014-12-17try to convert not only nil but every objects to fixnums; ref #2677Yukihiro "Matz" Matsumoto
2014-12-17String#[] should reject nil indexh2so5
2014-12-17mruby-eval: proc from env may be NULL; close #2676Yukihiro "Matz" Matsumoto
2014-12-17avoid out-of-bounds access of irep->lv; ref #2671, fix #2675Yukihiro "Matz" Matsumoto
allocation size of irep->iv is irep->nlocals-1.
2014-12-17mrb_str_new(mrb, "", len) creates an unmodifiable string object; ref #2674Yukihiro "Matz" Matsumoto
2014-12-17Merge pull request #2674 from suzukaze/string.prependYukihiro "Matz" Matsumoto
Add String#prepend
2014-12-17Add String#prependJun Hiroe
2014-12-17eval() should preserve stack in env properly; fix #2671Yukihiro "Matz" Matsumoto
2014-12-16Fix crash if #inspect does not return a string valueYukihiro "Matz" Matsumoto
2014-12-13Merge pull request #2669 from suzukaze/string.insertYukihiro "Matz" Matsumoto
Add String#insert
2014-12-13Add String#insertJun Hiroe
2014-12-12Merge pull request #2668 from sdottaka/fix-crash-for-inspectYukihiro "Matz" Matsumoto
Fix crash if #inspect does not return a string value
2014-12-12Fix crash if #inspect does not return a string valuesdottaka
case 1 ~~~ class A; def inspect; 1; end; end A.new.a ~~~ case 2 ~~~ class A def self.inspect 1 end alias_method :a, :b end ~~~
2014-12-12Merge pull request #2667 from ↵Yukihiro "Matz" Matsumoto
murasesyuka/usage_message_is_used_switches_instead_of_option fix usage message
2014-12-12mrb_p() should print mrb_obj_as_string() if #inspect does not return a ↵Yukihiro "Matz" Matsumoto
string value
2014-12-12mirb dies if #inspect returns a non-string value; fix #2666Yukihiro "Matz" Matsumoto
2014-12-11fix usage messagemurase_syuka
2014-12-11block_given did not work with nested block invocation for some cases; fix #2665Yukihiro "Matz" Matsumoto
2014-12-11mrb_parser_dump() did not work with block argumentsYukihiro "Matz" Matsumoto
2014-12-05Merge pull request #2663 from iij/pr-fix-string-utf8-arefYukihiro "Matz" Matsumoto
adding mruby-string-utf8 breaks String#[float]
2014-12-05String#[] accepts float.Tomoyuki Sahara
2014-12-02Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-12-02Merge pull request #2660 from ↵Yukihiro "Matz" Matsumoto
cremno/fix-isblank-for-visual-studio-versions-older-than-2013 fix ISBLANK() for Visual Studio < 2013
2014-12-02fix ISBLANK() for Visual Studio < 2013 (ref #2658)cremno
Visual Studio versions older than 2013 lack C99's isblank(). Since only ASCII characters are passed to it, implement it directly without calling the locale-specific isblank().
2014-12-01should not pop register when value from multiple assignment requiredYukihiro "Matz" Matsumoto
2014-11-29Merge pull request #2656 from ↵Yukihiro "Matz" Matsumoto
murasesyuka/bugfix/mruby-bin-debugger_enforce_the_c99 adhoc fix for pass build
2014-11-29closing to Local Scopemurase_syuka
2014-11-28preserve ICLASS in ci->target_class; fix #2657; ensuring #1467 #1470 #1493 ↵Yukihiro "Matz" Matsumoto
still works
2014-11-27add multiple assignment decomposition testYukihiro "Matz" Matsumoto
2014-11-27wrong register adjustmentYukihiro "Matz" Matsumoto
2014-11-27adhoc fix for pass buildmurase_syuka
2014-11-26Merge pull request #2655 from tmtm/fix-numeric-stepYukihiro "Matz" Matsumoto
Fix: Numeric#step infinite loop.
2014-11-26Fix: Numeric#step infinite loop.TOMITA Masahiro
2014-11-26Merge pull request #2652 from cremno/mrdb-add-missing-null-terminationYukihiro "Matz" Matsumoto
mrdb: add missing null-termination
2014-11-26Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-11-26add "fall through" commentYukihiro "Matz" Matsumoto
2014-11-26fix(String) String#[] accepts float; close #2650 #2651Robert Mosolgo
2014-11-26Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-11-26wrong register number adjustment in multiple assignment; fix #2654Yukihiro "Matz" Matsumoto
2014-11-26OP_APOST local variable display was wrongYukihiro "Matz" Matsumoto
2014-11-26free memory used by breakpointscremno