io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 21 hours agowith a break statement right?piefed.cdn.blahaj.zoneimagemessage-square36fedilinkarrow-up1522arrow-down114file-text
arrow-up1508arrow-down1imagewith a break statement right?piefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 21 hours agomessage-square36fedilinkfile-text
minus-squareio@piefed.blahaj.zoneOPlinkfedilinkEnglisharrow-up12·edit-28 hours agonot sure but for it to be a fork bomb you need something like & in ur pseudo code to go on to the next call rn the first call of f within the loop never completes so the second doesn’t happen. So this is “just” infinite recursion pls don’t scream at me should i be wrong. edit: i meant “completes” not “compiles”
minus-squareA_norny_mousse@feddit.orglinkfedilinkarrow-up2·10 hours agoNo you’re right. I also attempted to write pseudocode; not sure bash will even do this without curly brackets.
not sure but for it to be a fork bomb you need something like
&in ur pseudo code to go on to the next callrn the first call of
fwithin the loop never completes so the second doesn’t happen. So this is “just” infinite recursionpls don’t scream at me should i be wrong.
edit: i meant “completes” not “compiles”
No you’re right.
I also attempted to write pseudocode; not sure bash will even do this without curly brackets.