snrdg121408 said:
You can pressurize and depressurize the interior of an airliner but it is not an airlock.
The escape trunk on a submarine is a type of airlock since the trunk is a compartment that has a hatch at the top and a hatch at the bottom. Closing the lower hatch allows the trunk to be flooded and equalized with sea pressure allowing the upper hatch to be opened. This allows less air loss in the boat's interior and flooding. The upper hatch can be closed from inside the boat and the water removed allowing the lower hatch to be opened repeating the process.
Looking at the Traveller deck plans an airlock is a chamber with two air-tight hatches that has one hatch located on the hull separated by at least 1.5 meters is a second hatch allowing access into the ship's people compartment. With both hatches closed the chamber can be pressurized and depressurized without affecting the pressure on the spaces in the hulls interior.
Two compartments with a common bulkhead and a single hatch between them can be pressured and depressurized independently. When one compartment is depressurized you can, in theory anyway, open the hatch until the two are close to the same pressure. This is not an airlock even though the compartments can be pressurized and depressurized.
David Weber's short story Ms Midshipwoman Harrington has a detail that the passageway outside of a local weapon control station would be depressurized during combat. IIRC there are a number of other Honor Harrington stories that sections of the interior are depressurized during combat.
Airliners are not spaceships. Submarines are not spaceships. The correct analogy would be either the space shuttle, the ISS, or a space capsule.
While one certainly CAN pressurize and depressurize the main cabin of an airliner, it's not meant for that. And a submarine that allows water into a compartment not built for it would cause severe damage to any item that cannot be submerged. With a few exceptions, you can expose a lot of things to a vacuum without damaging them (perishables and plants would not do well).
LHA's have well decks that can be opened and flooded, closed and drained. A spacecraft with a cargo hold should, on occassion, expect to need to open their cargo hold to deliver a cargo in a vacuum - assuming the cargo was capable of handling vacuum that is. That is the environment they operate in, thus it would not be unusual.
Airlocks function far more
effectively than depressurizing an entire section, such as a cargo hold.
I've always thought that Traveller ships engaging in combat should depressurize before getting depressurized explosively by an internal hit. Explosive decompression is dangerous to anyone in the section, what with flying debris and all that. Plus since Traveller ships don't have magical force fields like they do in Star Trek or Star Wars, crews should be suiting up before combat (just like they do in the HH universe). It would be the common sense thing to do.