Thanks Anton, It did the job and also answered a similar question I had about the "For" iterative construct when I used it with a calculated word constants, a bit as in:
constant: 1 - 3 for c 10 1 constant [print c] When worked out in a similar way before, sometimes I had to change the for construct to a while construct to clear the non desired behaviour. The For simply refused to work as it should (at least to my eyes) and showed the kind of restrictions you pointed out below. Curiously however the example above worked flawlessly so mine was probably more complex but I can't remember it. Gerard Subject: [REBOL] Re: Fw: How to use a word instead of a numeric value > Convert grouping to integer. > This should point out the problem: > > >> copy/part "bonjour" 3.0 > ** Script Error: Invalid /part count: 3.0 > ** Near: copy/part "bonjour" 3.0 > > >> copy/part "bonjour" 3 > == "bon" > > Anton. > > > grouping: log-2 dest-base > > > slice: copy/part at value (c - grouping + 1) 3 -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
