In addition to the cases where call() is useful, this method allows you to create an arbitrary number of parameters to pass to the function via code. The following (contrived) example takes input from the user as long as it's not an empty string, and then calls a function which processes the arbitrary number of arguments passed to it.
The above sample code assumes a function called GetUserInput, which would be implementation-specific. To help illustrate the how the above would work, consider the following example:
On the 28th of August the numerous visitors of Russian Cultural Center in Tel Aviv became the guests of a special occasion that opened a new season at RCC.
RCC director, Dr. A.A. Krjukov warmly welcomed the guests, both old and new visitors, told about RCC plans and informed that Russian International Center Agency in Israel created its own cite.
The event symbolizing the beginning of RCC activity was literary-musical evening devoted to the memory of Russian-Israeli journalist and poet Vladimir Dobin (1946- 2005). Vladimir Dobin became famous in literary circles still during the years of his work in Moscow (he was an executive secretary of newspapers "Moscovsky Komsomolets", "Sovershenno Sekretno", published his poems in "Ujnost" and in "Literaturnaya Gazeta"). Coming to Israel V. Dobin became a prominent personality in Israeli literary and journalistic circles.
"I'm Russian poet, because I exist in Russian culture", - Dobin said about himself. Vladimir Dobin had published six books of poetry and the scores of profound analytical and publicistic articles in Israeli newspapers and magazines in Russian language.
Among our honored guests who came to commemorate their friend's and colleague's memory were a famous Russian and Israeli writer Anatoly Aleksin, the Chairman of Russian Speaking Writers' Union Efraem Bauch, its Executive Secretary Leonid Finkel, Zakhar Gelman, "Russian Newspaper" Own Correspondent in Israel, and other prominent Israeli men of letters, journalists, painters, musicians and public figures.
A violinist Galina Glushkina, an Azerbaijani people's actress Dina Tumarkina, who brilliantly recited Dobin's poems, the singer Olga Umansky, who sang the songs on his poems with guitar accompaniment, performed before the audience.
Galina Malamant – a journalist from "Week News" (Tel-Aviv) conducted the evening. Dobin had been working for several years for this newspaper.