ID:157996
 
If you don't know what i mean by unlimited arguments
addtext proc
        See also:
                + operator
        Format:
                addtext(Arg1,Arg2,...)
        Returns:
                A text string with the arguments concatenated.
        Args:
                Any number of text strings.

This code would work like this
var/t=addtext("Hello"," ","World","!")



Now I'm building a proc Sum so that it can be called like this.

var/n=Sum(1,2,3,4,5,6)


So i went to code this and this compiles fine, but i don't erh, know how to finish it...

proc/Sum(A,B,...)
//...?

Tubutas wrote:
If you don't know what i mean by unlimited arguments
<pre> > addtext proc > See also: > + operator > Format: > addtext(Arg1,Arg2,...) > Returns: > A text string with the arguments concatenated. > Args: > Any number of text strings. > </pre>
This code would work like this
> var/t=addtext("Hello"," ","World","!")
>



Now I'm building a proc Sum so that it can be called like this.

> var/n=Sum(1,2,3,4,5,6)
>


So i went to code this and this compiles fine, but i don't erh, know how to finish it...

> proc/Sum(A,B,...)
> //...?
>


args
In response to Haywire (#1)
Surprised i missed that.

I saw the argslist proc and figured, eh args list won't be any different.