Sec. 74-239. - Commitment of persons convicted of certain offenses.
(a) Whenever any circuit court or judge thereof, or any general district court or juvenile and domestic relations district court or judge thereof, in the exercise of sound discretion, shall determine that it is necessary for the protection of the public health or safety or for the promotion of the public welfare, through the rehabilitation of any person, such court or judge may, in lieu of imposing any sentence or fine provided for by law for such offenses, commit to the control and supervision of the director of the state department of corrections, for an indeterminate period of not less than three months nor more than 12 months, any person who, in such court or before such judge, is convicted in this city of:
(1) Being a prostitute;
(2) Being a keeper, inmate or frequenter of a bawdy place; or
(3) Soliciting for immoral purposes.
(b) When a person is tried for any offense enumerated in this section or is adjudged guilty of such offense, the court may, before fixing punishment, imposing sentence or ordering a commitment, direct any probation officer or agency performing probation services for such court to thoroughly investigate and report upon the history of the accused and any and all relevant facts, to the end that the court may be fully advised as to the appropriate and just sentence to be imposed or commitment to be ordered.
(c) During any period of commitment under this section, the committing court or judge thereof may, upon its own motion or upon application of the director of the state department of corrections, reduce such period of commitment.
(d) Notwithstanding the provisions of Code of Virginia, §§ 53.1-151 or 53.1-153, no person who, upon conviction of an offense enumerated in this section, is committed to the control and supervision of the director of the state department of corrections pursuant to this section or is otherwise incarcerated in a penal institution shall be eligible for parole.
(Code 1981, § 21-26)