metaeducation / ren-c

Library for embedding a Rebol interpreter into C codebases
GNU Lesser General Public License v3.0
126 stars 27 forks source link

Quoting Infix Operators After An Evaluative Argument #1156

Open hostilefork opened 10 months ago

hostilefork commented 10 months ago

From Red Gitter.im

"Effectively, for argument N to work as lit-arg or get-arg, we must require argument N-1 to also be either lit-arg or get-arg. Else it can't function as intended."

>> f: func [a 'b] [probe a probe b]

>> f 'z x
z
x
== ~  ; isotope

>> f 'z +
** Script Error: + expects [char! any-scalar! date! binary!]
   for its value1 argument