Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Code loading example
- void main()
- {
- // Compile our class to a program
- program tmp = compile_file("termout.pike");
- // Instantiate the containing class
- object T = tmp->Termout();
- werror("T: %O %O\n", _typeof(T), indices(T));
- T->printstuff("Hello");
- T->printerror("Hi error", 3);
- // Functions kan be pointed to in a variable
- function p = write;
- p("Hello:");
- p = T->printerror;
- p("Hello", 17);
- }
Add Comment
Please, Sign In to add comment