Advertisement
Guest User

Untitled

a guest
May 2nd, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using std := cpp("WideLibrary/test.h").std;
  2. Main() {
  3. vec := std.vector!(int8)();
  4. fun := sample();
  5. fun.y = true;
  6. vec.push_back(5);
  7. vec.push_back(6);
  8. std.sort(vec.begin(), vec.end(), fun.choice);
  9. }
  10. type sample {
  11. y := bool();
  12. choice(int8 lhs, int8 rhs) {
  13. std.cout << y;
  14. return y;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement