/...
/... later in my 1980 OW, the training warned against it. CO2 detonators were used for emergency buoyancy on BC's, and in the "fog of emergency", you could be breathing CO2.
In the period between the training I had heard of using that trick from mentors, but had no need to try it out. The warning about CO2 was given, however since it was not a basic class, it was assumed you could handle the task loading and make the proper decision. I had a proper horsecollar by then.
CO2 detonators and bag breathing were separate solutions for similar emergency ascent issues.
In both cases it's a given that you are out of breathing gas. It was after all the pre-SPG, J-valve era, and J-valves often got pulled accidentally. With an unbalanced piston first stage you got fair warning as the work of breathing increased significantly as the tank pressure approached the intermediate pressure, but with a balanced first stage there was no warning at all.
Assuming you were neutrally buoyant, you just made an emergency swimming ascent and exhaled on the way up to keep the airway open. The gas in the BC expanded and that ascent quickly became buoyant as well, with not much swimming required.
The CO2 detonators were more for use if for some reason you were negatively buoyant when you ran out of gas. Even with 32 gram cartridges at significant depth the loft as just enough to get you headed upwards, and there was no need to bag breathe. The other, and arguably more practical use of the CO 2 detonator was to quickly get someone positively buoyant on the surface, as power inflators were not yet universal.
In contrast, if you were negative at depth, and did not have a CO2 detonator, you could conceivably be in a position where the gas you had in your lungs was not sufficient to reach the surface given the extra swimming effort, and bag breathing would provide a very short term non scrubber rebreather capability using the gas in the BC.
In short, you'd configure for and use a CO2 system, or bag breathing, but never both. However, I suspect many divers never thought it through.