Skip to content

Commit

Permalink
leave Array untouched for the moment
Browse files Browse the repository at this point in the history
This breaks basic ruby-style array access, see #4.
Removing this costs the ability to run certain haxe-defined methods
on arrays when type information is not available, so will need to
revisit this later.
  • Loading branch information
paulfitz committed Jan 4, 2016
1 parent dee9e75 commit 0e20d2c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions genrb.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1641,9 +1641,6 @@ let generate_main ctx inits reqs com =
spr ctx " end\n";
spr ctx " end\n";
spr ctx "end\n";
spr ctx "class Array\n";
spr ctx " haxe_me(['Array'])\n";
spr ctx "end\n";

let rec chk_features e =
if is_dynamic_iterator ctx e then add_feature ctx "use.$iterator";
Expand Down

0 comments on commit 0e20d2c

Please sign in to comment.