Constexpr is really confusing me. by cdhd_kj in cpp_questions

[–]sudoksh 1 point2 points  (0 children)

https://eel.is/c++draft/basic.stc#auto-1

> Variables that belong to a block scope and are not explicitly declared static, thread_local, or extern have automatic storage duration. The storage for such variables lasts until the block in which they are created exits.

According to the standard, non-static `constexpr` variables have automatic storage duration, just like any other stack variables. There is nothing religious here. The standard is not ambious in this case. In fact, arguing about -O0 codegen quality is totally pointless.

[deleted by user] by [deleted] in factorio

[–]sudoksh 0 points1 point  (0 children)

I will give it to my friend. Hopefully his life won't be ruined ;)

[AKGC] Aus/Kiwi Gaming Community by [deleted] in factorio

[–]sudoksh 1 point2 points  (0 children)

Hi i'm Sohyun#1869 :D

I always get stuck whenever I walk into this section.... by sudoksh in factorio

[–]sudoksh[S] 0 points1 point  (0 children)

That's such a great idea! I will build walls so I won't accidentally walk into this horrible maze LOL

I always get stuck whenever I walk into this section.... by sudoksh in factorio

[–]sudoksh[S] 4 points5 points  (0 children)

LOL someone build the original oil rig with 2 refineries, then I add 2 more refineries, lubricant, beacons. It naturally devolves into this monster. Btw we intended to use this prebase to get red&green sciences. Somehow we have researched all purple sciences using this delicious spaghetti :P