Simple. Don't take a `ref`. Just take a `Console`. Classes in D are reference types, you're not making a copy as you would in C++ if you were to write `updateFoodToken(Console c)`.
Ah, ok, Reference types! That's great. Definitely my C++ bias working against me, good you read my mind :)