Rebol function and unlimited arguments

The do function in rebol seems to take unlimited arguments. Can I do this with my own function (without using an argument block)?

+3
source share
2 answers

It is not possible to define a function with a variable number of arguments. The last explanation on this Rebol mailing list http://www.rebol.org/ml-display-thread.r?m=rmlDTXB contains explanations.

The do function also takes one argument:

>> ? do
USAGE:
    DO value /args arg /next 

DESCRIPTION:
     Evaluates a block, file, URL, function, word, or any other value.
     DO is a native value.

ARGUMENTS:
     value -- Normally a file name, URL, or block (Type: any)

REFINEMENTS:
     /args -- If value is a script, this will set its system/script/args
         arg -- Args passed to a script. Normally a string. (Type: any)
     /next -- Do next expression only.  Return block with result and new position.
+4
source

, REBOL , DO. R2 MAKE . , , .

+2

Source: https://habr.com/ru/post/1715913/


All Articles