Школоло / Говнокод #21250 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
type
    users_t = (tarasB := 0, superhackkiller1997, other_shit);
    say_ptr_t = procedure (const s : string);
 
var
    users : array of string = ('tarasB', 'superhackkiller1997', 'other_shit');
 
function bind(usr: users_t) : say_ptr_t;
begin
end;
 
{say_ptr_t bind(users_t usr) {
  void say(char * str) {
    fprintf(stderr, "%s: %s\n", users[usr], str);
  }
  say_ptr_t volatile p = say;
  return p;
}}
 
begin
    bind(tarasB)('is god');
    bind(superhackkiller1997)('shit');
    bind(other_shit)('ko-ko-ko');
end.

Признавайтесь, кто автор кода?

Запостил: huesto huesto, (Updated )

Комментарии (8) RSS

Добавить комментарий

Помни, guest, за тобой могут следить!

    А не использовать ли нам bbcode?


    8