[REBOL] Re: Using a Math oper. buried in a variable
From: gregg:pointillistic at: 2-Apr-2009 12:46
DN> I want to do something like:
DN> num1: = 6
DN> num2: = 5
DN> op: "*"
DN> print [num1 op num2]
DN> and get 30 as the result. How in the %^-#*& do you do this in REBOL?
I addition to Tom's answer, this may help explain word usage:
As with most things in REBOL, there are a number of ways to do what
you want. Here's another one:
>> num1: 6
>> num2: 5
>> op: :*
>> op num1 num2
>> print [op num1 num2]