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

[REBOL] Re: [context] Problem with context?

From: antonr::lexicon::net at: 5-Apr-2005 0:20

Hi Arie, If you had other functions in the object which also used the rule, then it would make sense to share the rule in the way Volker suggested: parse input bind rule 'res which binds to the function's context (using the local word 'res as the known-word). If there's only ever going to be one function, then you might as well make all your rules be defined in the function body as locals, then you can probably dispense with the enclosing object altogether! The fact that you did put the function in an object to start with makes me think you did want to share some parts like the rule... Anton.