Skip to content

Instantly share code, notes, and snippets.

@flaviut
Last active August 29, 2015 13:57
Show Gist options
  • Save flaviut/a77d85d21e8c6c61c1ee to your computer and use it in GitHub Desktop.
Save flaviut/a77d85d21e8c6c61c1ee to your computer and use it in GitHub Desktop.
In
==
var a: array[2..5,int]
a[2] = 1
a[3] = 2
a[4] = 5
Out
=====
typedef NI TY80007[4];
TY80007 a_80009;
...
nimln(6, "test.nim");
a_80009[(2)- 2] = 1;
nimln(7, "test.nim");
a_80009[(3)- 2] = 2;
nimln(8, "test.nim");
a_80009[(4)- 2] = 5;
nimln(10, "test.nim");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment