I want to know the best way to propagate refinement selections (or their lack) 
to a function which actually does the processing for them.

deduction: func [/use-month month-to-use /use-day day-to-use] [
        rejoin  [ "file-"
                        either use-month [ month-to-use ] [ now/month ]
                        either use-day   [ day-to-use ]   [ now/day   ]
                ]
]

main [/use-month month-to-use
        /use-day day-to-use
        ] [

        ; --- dilemma:
        ; --- I can call deduction with
        ; --- a - no refinements
        ; --- b - either or 1 refinement
        ; --- c - both refinements
        ; and I dont want a bunch of hairy eithers and ifs to create
        ; all the various refinements to send to deduction
]

terrence-brannon: [[EMAIL PROTECTED] perl-refugee myth-gamer]
free-email:       http://www.MailAndNews.com
free-usenet:      http://www.mailAndNews.com
; all the above is real REBOL code, believe it or not.

Reply via email to