Re: Linux command-line-oriented programs in Euphoria
Tom Dailey wrote:
>
>
> Matt:
>
> Thank you for the detailed suggestion. I tried your code
> as written, and it worked fine. However, when I changed
> the call to Printf() to one with a format having two %s
> items, followed by two string arguments, I got an error
> message from the interpreter. The Printf() call I used was:
>
> Printf ( "My name is %s %s\n", {"Tom"}, {"Dailey"} )
>
> and the error message was:
>
> printf2.exu:32
> Printf takes only 2 arguments
> Printf ( "My name is %s %s\n", {"Tom"}, {"Dailey"} )
>
> What am I doing wrong?
>
> Thanks,
> Tom
In Euphoria, routines have a set number of arguments - set at declaration. You
can get round this easily by asking for/providing a sequence.
Try:
Printf ( "My name is %s %s\n", {"Tom", "Dailey"} )
I haven't tried it BTW.
Alex
|
Not Categorized, Please Help
|
|