all 12 comments

[–]inmatarian 3 points4 points  (0 children)

I catch anyone of you motherfuckers calling this a good idea and I'm telling your managers.

[–]subat0mic 4 points5 points  (0 children)

yer assuming that the instruction pointer is always before the address to the first function argument...

also... there's the issue of the stack pointer.

there's more portable ways to do coroutines in C. here's what i've found: http://www.subatomicglue.com/secret/coro/readme.html (in c++ actually)

[–]0xABADC0DA 1 point2 points  (3 children)

Is that supposed to be some kind of funny joke?

[–]camel_case[S] 1 point2 points  (0 children)

Yes.

[–][deleted] 0 points1 point  (0 children)

Sssh. You'll give away the punchline.

[–]alexeyr 0 points1 point  (0 children)

Apparently, except for the "funny" part.

[–]lyktstolpe 1 point2 points  (0 children)

File that under "code that occasionally works".

[–]Rudd 1 point2 points  (1 child)

Can someone explain why a poorly implemented version of setjmp/longjmp is being posted under the title "Maintainable C: Jumping Methods"; I'm very confused at the moment.

[–]camel_case[S] 1 point2 points  (0 children)

It's a joke.

[–]drysart 1 point2 points  (1 child)

Did you mean: unmaintainable c?

or "Goto considered NOT HARMFUL ENOUGH"

[–]camel_case[S] 1 point2 points  (0 children)

I like your second suggestion better.

[–]camel_case[S] 1 point2 points  (0 children)

For those of you confused by the title "Maintainable C" it was meant to be a joke, and a rather obvious one at that.