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

[REBOL] Re: [understanding 'bind]

From: greggirwin:mindspring at: 7-Mar-2002 11:07

Hi Patrick, << Has anyone a practical illustration for that kind of usage ? >> I wrote a small AWK pseudo-dialect which uses that technique. When you write your AWK program, you will use certain keywords (e.g. _ to reference the current, parsed line). I BIND the AWK program block to my processor object's context so you can just use _/1 to get field 1 from the line, rather than having to write rawk/_/1. --Gregg