kishtarn555 / rekarel-core

MIT License
0 stars 0 forks source link

[Revamp] Add a global array #18

Open kishtarn555 opened 2 months ago

kishtarn555 commented 2 months ago

Add an global array

Proposed solution

program() {
  memo.init(100); // Called once, it sets the array size
  memo[3] = 4;

  iterate(memo[3]) {
    putbeeper();
  }
}

You can test an incomplete implementation of these here: https://kishtarn555.github.io/ReKarel2/webapp/#

ccepeda commented 2 months ago

Is a tempting feature. But I believe it will be better for revamp v.2