many thanks, Jarrett Billingsley. i don't like templates, so you solution good. i hope, Walter will add support for this in language, and such ugly construction will gone from sources in future.