But if you declare boop within a loop, is the engine continually adding 8bytes every frame?....which means if you leave it on long enough the engine would run out of memory lol, which I think doesnt happen.
No, this is not right. Allocation in this context is allocating stack memory which is released at the end of a block (which is a closing '}')