Advertisement
rotrevrep

forbidden Vala naming

Oct 25th, 2013
2,644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.90 KB | None | 0 0
  1. int main()
  2. {
  3.     goto (33);
  4.     return 0;
  5. }
  6.  
  7. void goto (int val){}
  8.  
  9. /*
  10. /home/yannick/Documents/main.vala.c:12:6: error: expected identifier or ‘(’ before ‘goto’
  11.  void goto (gint val);
  12.       ^
  13. /home/yannick/Documents/main.vala.c: In function ‘_vala_main’:
  14. /home/yannick/Documents/main.vala.c:17:7: error: expected identifier or ‘*’ before ‘(’ token
  15.   goto (33);
  16.        ^
  17. /home/yannick/Documents/main.vala.c: In function ‘main’:
  18. /home/yannick/Documents/main.vala.c:24:2: warning: ‘g_type_init’ is deprecated (declared at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
  19.   g_type_init ();
  20.   ^
  21. /home/yannick/Documents/main.vala.c: At top level:
  22. /home/yannick/Documents/main.vala.c:29:6: error: expected identifier or ‘(’ before ‘goto’
  23.  void goto (gint val) {
  24.       ^
  25. error: cc exited with status 256
  26. Compilation failed: 1 error(s), 0 warning(s)
  27.  
  28. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement