No person subject to [the Army Act, [the Army Act, 1950 (46 of 1950)], the Naval Discipline Act, [ *** [the Indian Navy (Discipline) Act, 1934 (34 of 1934)], [the Air Force Act or [the Air Force Act, 1950 (45 of 1950)]]], is subject to punishment under this Code for any of the offences defined in this Chapter.
Section 139 IPC
Persons subject to certain Acts
The Indian Penal Code, 1860 is repealed. It was replaced by The Bharatiya Nyaya Sanhita, 2023 from 1 July 2024; this provision still applies to matters that arose before then.