Skip to content

Instantly share code, notes, and snippets.

@pete
Created April 10, 2014 17:15
Show Gist options
  • Save pete/10403457 to your computer and use it in GitHub Desktop.
Save pete/10403457 to your computer and use it in GitHub Desktop.
implement A;
include "sys.m"; sys: Sys;
include "draw.m";
A: module {
init: fn(nil: ref Draw->Context, nil: list of string);
};
init(nil: ref Draw->Context, nil: list of string)
{
sys = load Sys Sys->PATH;
s := "üasdf";
for(i := 0; i < len s; i++)
sys->print("%d\t%d\t%c\n", i, s[i], s[i]);
}
0 252 ü
1 97 a
2 115 s
3 100 d
4 102 f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment