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

[REBOL] best means of passing refinements from main to helper function?

From: princepawn:mailandnews at: 15-Sep-2000 16:30

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: [[princepawn--yahoo--com] 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.