In People v. Williams (1981) 30 Cal. 3d 470 [179 Cal. Rptr. 443, 637 P.2d 1029] the Supreme Court held that a court