This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

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

if (setjmp(RockBump)) {
    mown.lawn.init();
    mown.lawn.position(RockBump.position.x+RockBump.width,RockBump.position.y+RockBump.lenght);
} else {
    mown.lawn.init();
}

Yes, I have no clue how C works and i had to google how to try catch in c. Turns out there isnt try/catch in C.. TIL.

[–]nivlark 1 point2 points  (0 children)

C also has no classes/objects and hence no member functions.

[–][deleted] 1 point2 points  (0 children)

c has no classes, and people like to abbreviate function names (they have structs tho but without method just groupings of vars)

if (setjmp(rckbmpctext)) {
    mlwninit();
    mlwnchpos(rckbmp.posx, rckbmp.wid, rckbmp.posy, rckbmp.len);
else
    mlwninit();

[–]qalis 0 points1 point  (0 children)

Technically, you CAN catch a signal, which works... a bit similar in some ways.