Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What do things like [string!] and [any-block!] in a function specification block mean?

0
Posted

What do things like [string!] and [any-block!] in a function specification block mean?

0

Function arguments followed by one or more datatype identifiers in a block denote a specific constraint on that argument to a function. For instance, the following header: some-func: func [value [money!]] […] means SOME-FUNC takes one argument assigned to VALUE. The function will return an error if it is supplied an argument other than a money type. See the REBOL/Core User’s Guide Functions chapter for more.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.