A question appeared when I tried to find a method of generating case-expression just once, not for every comparison. Is it optimal to try to add for every case-structure (and do...while, by the way) a temporary variable where we may hold the value of case-expression? mailto:mike_d at mail.ru