> But  then this  (the  example below)  explicitly  lists the
> refinements in the function  body.  I think the  "ultimate"
> solution would process an arbitray list, as with a loop. It
> is fairly  short  though  :) and IS   a  step  up  from 'if
> statements, esp for more than 2 refinements.
> 
> - Michael Jelinek

  Yes, like I meant to say: it's not exactly elegant. (:
  Refinement transferal is at the frontiers of REBOL
  research. ;)

  -jeff

> main: func [
>      /use-month month-to-use /use-day day-to-use
> ] [
>      go?: func ['what  /it][either it: get what [either true = it [what][it]][]]
>      do  reduce  compose/deep   [
>          to-path   [deduction  (go? use-month) (go? use-day)]
>                      (go? month-to-use) (go? day-to-use)
>      ]
> ]

Reply via email to