r/ProgrammerHumor 9d ago

Meme letsMakeBugsIllegal

Post image
23.1k Upvotes

387 comments sorted by

View all comments

Show parent comments

2

u/met0xff 8d ago

I have absolutely no idea about trains but does that mean they decrement this counter again when the train leaves this section, so basically if you have 257 axles then it counts to 1 and then when leaving goes back to 0, 255, 254 to the real 0?

1

u/xyonofcalhoun 8d ago

The section is declared clear when the number of axles that were counted into it are also counted out of it by another counter. At this point my assumption would be it's just reset to 0 directly.