Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Using a Math oper. buried in a variable

From: Scott:Wall:xwave at: 2-Apr-2009 15:53

Hi Duke,
> As with most things in REBOL, there are a number of ways to do what > you want. Here's another one: >>> num1: 6 >== 6 >>> num2: 5 >== 5 >>> op: :* >>> op num1 num2 >== 30 >>> print [op num1 num2] >30
Still another way is to leave op: "*" and use: do reform [num1 op num2] Scott